I am trying to run a script that opens a powershell instance for every sub-directory and runs the command whisperPath
Here's the code:
When I run the code on my desktop (also running Windows 10), 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:
When I type pwsh in address bar or start it from Windows Start Menu, it starts in Windows Terminal. I also opened pwsh's Properties which showed that using legacy mode was disabled.
PowerShell Environment Variables:
About PC:
Here's the code:
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 (also running Windows 10), 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:
When I type pwsh in address bar or start it from Windows Start Menu, it starts in Windows Terminal. I also opened pwsh's Properties which showed that using legacy mode was disabled.
PowerShell Environment Variables:
About PC:
Device name Lance
Processor AMD Ryzen 5 5500U with Radeon Graphics 2.10 GHz
Installed RAM 16.0 GB (15.3 GB usable)
Device ID 9E*************************B1
Product ID 00*************************EM
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
Edition Windows 10 Home
Version 22H2
Installed on 27-08-2023
OS build 19045.3448
Experience Windows Feature Experience Pack 1000.19044.1000.0