I\'m replacing parts of a .bat script with PowerShell. Configuration for the batch files is done via files that set appropriate environment variables. I\'m look
If you are using the PowerShell Community Extensions, it has a Invoke-BatchFile that does this. I use with the Visual Studio vcvarsall.bat file to configure my PowerShell session to use the Visual Studio tools.