I wonder if we should use device manager here... https://mozbase.readthedocs.org/en/latest/mozdevice.html#mozdevice.DeviceManager.shellCheckOutput looks like it might work well.