I try to run powershell script from c#.
powershell
First i set the ExecutionPolicy to Unrestricted and the script is running now from
ExecutionPolicy
Unrestricted
Run this code in your powershell or cmd
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass