-- Connect Work VPN
 
tell application "System Events"
    tell network preferences
        tell current location
            tell service "Work"
                connect
                tell current configuration
                    repeat until get connected = true
                        delay 1
                    end repeat
                end tell
            end tell
        end tell
    end tell
end tell
 
set gateway to "192.168.1.1"
 
do shell script "route add 172.16.0.0/16 " & gateway with administrator privileges

Navigation
Personal Tools