Windows 10 Script causes Powershell to open in Console Host instead of Windows Terminal

  • Thread starter Thread starter kanishknishar
  • Start date Start date
K

kanishknishar

I am trying to run a script that opens a powershell instance for every sub-directory and runs the command whisperPathHere's the code:Get-ChildItem -Directory -Recurse | ForEach-Object { Start-Process -FilePath "pwsh.exe" -ArgumentList "-NoExit -Command Set-Location -LiteralPath '$($_.FullName)'; whisperPath" }When I run the code on my desktop, each instance of Powershell opens in Windows Terminal successfully but that is not the case on my laptop which opens each Powershell window in Windows Console Host despite WT being the default terminal manager on my laptop:About PC:Device name Lance

Continue reading...
 
Back
Top