0
ssomebody是否可以帮助在同一窗口中运行新进程?PowerShell启动过程
$credential = Get-Credential
Start-Process powershell.exe -Credential $credential -NoNewWindow -ArgumentList ".\ListScript.ps1" -Wait
Write-Host "Press any key to continue ..."
$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
-NoNewWindow不工作,但没有-Credential $凭证,它工作正常..我如何才能解决这个问题?