diff --git a/scriptsharp/ScriptSharp/Utils.cs b/scriptsharp/ScriptSharp/Utils.cs index cf833fc..955a48c 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 = "pwsh.exe", + FileName = "powershell.exe", Arguments = $"-Command \"{command}\"", RedirectStandardOutput = true, UseShellExecute = false,