Hi, I'm Elise, and I'd be happy to help with your issue.
It can be done, but it’s not exactly a simple process.
You need to create and XML WLAN profile for the correct type of WiFI system you are connection to.
There are examples of this here:
https://learn.microsoft.com/en-us/windows/win32...
Then run the commands:
netsh wlan add profile filename="file_name.xml"
netsh wlan connect name="SSID"
Replacing with the correct xml file name and SSID which you set in the file.
Please let me know if you need any further assistance.
Kind Regards,
Elise