Hello @Saliya Dinusha ,
welcome to this moderated Azure community forum.
AT commands are just a way to configure your device.
If that device expects a regular MQTT broker, this will probably not work...
The IoT Hub uses MQTT to honour the abilities of the Device Twin (like desired, reported properties, direct methods, etc.) so only specific MQTT topics are supported, in a very specific way.
Check this blog post explaining the IoT Hub MQTT abilities in detail.
If you want to connect to a regular MQTT broker that follows the MQTT version 3 or version 5 specifications, please check the Event Grid MQTT broker.
Notice that this services uses the G3 certificate alongside a client certificate for the client identity. A name/password combination is not supported (yet).
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.