Hello
Thank you for your question and reaching out. I can understand you are having query related to disable hotspot using command.
You can create batch file to do the same thing using Registry
HKEY_LOCAL_MACHINE
Software\Policies\Microsoft\Windows\Network Connections
NC_ShowSharedAccessUI
Disabled Value = 1
Reference :
---------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--