Switched to use minimum pwsh command: -Version
MODIFY
src/Shared/Tests/PowerShellTestUtilities.cs
src/Shared/Tests/PowerShellTestUtilities.cs
@@ -19,7 +19,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Shared.Tests
{
try
{
- Process powershell = Process.Start(command, "-h");
+ Process powershell = Process.Start(command, "-Version");
powershell.WaitForExit();
if (powershell.ExitCode == 0)
{

Switched to use minimum pwsh command: -Version