I wrote the following bash script to send a command to my IOT device:
#!/bin/bash # target aws command # aws iot-data publish --topic 12345678_toDevice --qos 1 --