power-shell script visual studio ExecutionPolicy , ...
Set-ExecutionPolicy -Scope CurrentUser;
ExecutionPolicy: unrestricted;
shell call script as follows ...
powershell.exe $(SolutionDir)Setup.ps1 -SolutionDir $(SolutionDir) -ProjectPath $(ProjectPath)

then in a script you can always read a parameter like this ...
param([string]$SolutionDir,
[string]$ProjectPath);
#Write-Host ($SolutionDir +" Call this script with following aruments");
#Write-Host ($ProjectPath +" Call this script with following aruments");
source
share