Piecing together things he found on MacScripter, mtennes wrote the following AppleScript to make a connection to his companies VPN and then modify the kernels routing tables so that internet traffic doesn't go through the VPN but goes directly to the internet.
Source >>