Welcome to the Seven Forums.
So, there are two or more Wi-Fi SSIDs that you are authorized to connect to in the remote location?
Others in the forum might have a better way to do this, but I would use AutoIt in a ping loop - if the ping fails - then double check - if ping still fails, use netsh to create a connection. Or use the info
here or
here.