NetCatcherPro
The main purpose of use is automatic routing when network link (in example VPN connection) is going up or down. However, executing commands can be anything - not routing related only. Just for an example, you may want to autostart MS Word when your VPN-connection link is goig up - it's also quite possible.