PowerShell CmdLet as Visual Studio External Tool PowerShell CmdLet as Visual Studio External Tool powershell powershell

PowerShell CmdLet as Visual Studio External Tool


Are you running on a x64 system? If so, you have to set the execution for both x86 and x64 PowerShell. You can also pass the ExecutionPolicy directly as a parameter to Powershell (2.0) via the command line:

powershell.exe -ExecutionPolicy RemoteSigned -Command "&{ foo }"