[Q] Make Windows Connect to Specific Wifi Network After 60 seconds?

I do a lot of wifi hotspot testing over Teamviewer. When the hotspot doesn't work I lose the Teamviewer connection. Is there any way to make Windows connect to a specific network after about 60 seconds or so?

If I can choose the specific wifi network to make Windows to connect to after a set amount of time my life would be much easier!

Solved it. My batch script is posted below. The first ping line just pauses the script.

ping -n 1 -w 10000 > nul
netsh wlan connect ssid=NETWORKNAME name=NETWORKNAME

This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.