There is a better way.
Just make a batch file with the logon script you wish to use, put a timer in at the beginning like
x = 1
While x<10000
Do x + 1 = x
Adjust that as required to fit the time it takes the client to connect on long connects by upping the number it counts to. Then make a shortcut to it, set the shortcut to run minimized, give it the Icon of the vpn client and set the VPN client to "run this program" and point that to where ever you have the script, which should probably just be the cisco vpn client folder.
Now when the user opens the VPN client and connects the script does what you want without the user having to touch anything. Plus no ugly console box or windows of any kind to click on or see.
I have used this in the past to great success, now I know very little of script programming, and tend to use batch files which I do know well enough. But this trick has never failed me. I even set up similar batch files in Task scheduler to run a script and connect the VPN client then run another script, wait 9 hours and close it all down. No user intervention at all, no mess, no fuss, no complaints at all.
good luck with all this, it is fun if you are new to it like I was when I embarked on it. Well I am still new to the script stuff, so I am sure someone has one even better, but good luck none the less.
Eddie Venus