A good change would be to implement hs.location / hs.location.geocoder to look up the current country by GPS.
Then make the VPN toggle connect to the closest VPN (make a Lua table with country codes mapped to VPN names).
https://www.hammerspoon.org/docs/hs.location.geocoder.html