Files
WSL/tools/test
Ben Hillis 8897d64c6b Fix Wait-Process compatibility with PowerShell 5.1 (#40263)
Wait-Process -PassThru is only available in PowerShell 7+. Since
test.bat invokes powershell.exe (Windows PowerShell 5.1), this caused
a NamedParameterNotFound error when running tests.

Replace with Wait-Process followed by reading ExitCode from the
process object already returned by Start-Process -PassThru.

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-21 20:58:28 -07:00
..
2025-07-23 15:19:00 -07:00