Next: How to run powershell from TaskActivity of Window

How to run powershell from TaskActivity of Window

 Use as Program or script: c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe

and as arg use -executionpolicy bypass -file "C:\Temp\example.ps1"

where example.ps1 contain your script