When ever there is a need for setting policy for powershell execution there is a nice way around this by querying the current setting and parsing this around the script.

 

powershell.exe -noprofile -command “& {$variable = Get-ExecutionPolicy:If((Get-ExecutionPolicy) -ne ‘Unrestricted’){Set-ExecutionPolicy unrestricted -force;}; <ENTER SCRIPT NAME HERE>; Set-ExecutionPolicy $variable}”