It would be nice to be able to set the execution policy for scripts run inside the PowershellTaskFactory.
cf. http://stackoverflow.com/questions/10260597/invoking-powershell-script-with-arguments-from-c-sharp
Comments: ** Comment from web user: flcdrg **
cf. http://stackoverflow.com/questions/10260597/invoking-powershell-script-with-arguments-from-c-sharp
Comments: ** Comment from web user: flcdrg **
Never mind.. I thought this was problematic, but it turns out I was using Write-Host in my script which was the cause of an error rather than being able to set the execution policy.