diff --git a/scriptsharp/ScriptSharp/Utils.cs b/scriptsharp/ScriptSharp/Utils.cs index 955a48c..25d670b 100644 --- a/scriptsharp/ScriptSharp/Utils.cs +++ b/scriptsharp/ScriptSharp/Utils.cs @@ -239,7 +239,7 @@ private static void RunPowerShellCommand(string command) { ProcessStartInfo processStartInfo = new ProcessStartInfo { - FileName = "powershell.exe", + FileName = "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", Arguments = $"-Command \"{command}\"", RedirectStandardOutput = true, UseShellExecute = false,