With Default Terminal set to Windows Terminal - Use start-process to launch PWSH in the Windows Console Host

  • Thread starter Thread starter fredswims
  • Start date Start date
F

fredswims

Guest
I am running Windows 11 24H2 (ARM64) and have set the default terminal to Windows Terminal.I have a PWSH function that does the following: $parameters = @{ Filepath = "pwsh.exe" Args = "-noexit -noprofile -command & {. 'runThis.ps1'}" } start-process @parametersHowever, I want that invocation of pwsh to run in the Windows Console Host.Is that possible?

Continue reading...
 
Back
Top