Jump to content

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


Recommended Posts

Guest fredswims
Posted

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...

  • Replies 0
  • Created
  • Last Reply

Popular Days

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...