Commands are using “Direct Methods” functionality of the IoT Hub:

https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-direct-methods

Commands