Hello @RAJBHAR, SUSHANT,
welcome to this moderated Azure community forum.
The Azure Digitial Twins environment does not support DTDL commands (yet).
Controlling hardware can be achived easily via a second channel:
device->iot hub -> 3d Scene -> 3d Scene URL widget -> Website call -> direct method call -> IoT Hub -> device
Just build your controlling logic (a direct method call on the iot hub?) in a website, possible secured by the same AAD accounts users use for your 3D Scenes studio.
Then make use of the URL widget so a user can click on it and execute the action url directly of executes it via a landing space.
This answer is written by myself, not by some AI. 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.