Is it possible to supervise device without using Apple Configurator 2

Dear Team,


We are developing an MDM for an enterprise solution. Their are some commands like restart, shut down etc. To execute these command we need to make device as supervised. Currently we are making device as supervised using Apple Configurators 2. Is their an alternative to make device supervised without using Apple Configurator 2.