mirror of
https://github.com/microsoft/WSL.git
synced 2026-06-01 01:49:36 -05:00
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>