I'm new to PowerShell and just discovered PowerShell ISE (3.0). Previously I used three shortcuts for cmd-windows:

1. One for jboss to run server scripts
2. One for build scripts that needs JDK6
3. One for build scripts that needs JDK7

These shortcuts would open the windows at correct path and set JAVA\_HOME.

Now I would like to create one shortcut that would open corresponding tabs in PowerShell ISE with appropriate names. I was thinking that I could manipulate $psISE.PowerShellTabs in a script, but I can only create new tabs and change names, I can't manage to change directories or variables as I like.

How should I do this?