Run Visual Studio command line tools in Windows Powershell

The PowerShell Community Extensions has an Import-VisualStudioVars cmdlet.


PSCX's Import-VisualStudioVars is a large script that tries to duplicate what vsvars32.bat does. The problem there is that keeping them in sync requires effort and can be a source of bugs.

I prefer to rely on vsvars32.bat to do what it does, and import the env. vars. in to PowerShell. I do that with Invoke-CmdScript.ps1.