In Windows 10, try (from a command prompt) netsh wlan connect . This can connect to an existing profile . Type netsh wlan connect /? to see the help for this. There is a netsh wlan disconnect command as well.
– JohnJan 18 '20 at 14:36
1
Does this answer your question? [How to enable Internet Connection Sharing using command line?](https://superuser.com/questions/470319/how-to-enable-internet-connection-sharing-using-command-line)
– Smart ManojJan 20 '20 at 01:58