[CB-4268] Add support for --device and --emulator to run script