Since 12.2, network preferences does not return VPN connections anymore. Therefore, VPN autoconnect scripts / Applications do not work anymore.
tell application "System Events"
tell current location of network preferences
name of every service
end tell
end tell
Returns:
{"USB 10/100/1000 LAN", "WLAN", "iPhone-USB", "Thunderbolt Bridge"}
Has the API changed?