PowerShell / PowerShell/vscode-powershell

Pass parameters to PowerShell.exe (specifically NonInteractive)

Open
#1,470 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Extension Terminal Issue-Enhancement Up for Grabs
Dominant language
TypeScript
Stars
1.9k
Forks
547
PR merge metrics
No merged PRs in 30d

Description

PowerShell.exe supports various command-line flags. It would be beneficial to allow control over these arguments. Specifically, I want to run powershell.exe -NonInteractive. This is especially useful when powershell.debugging.createTemporaryIntegratedConsole is set to true so you get an isolated run with the exact environment you want.

I tried using the args setting in launch.json but that seems to pass parameters directly to my script, after powershell.exe has already been loaded (with parameters I have no control over).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how launch.json args are handled for the temporary integrated console and how PowerShell.exe is invoked. Confirm where script arguments are separated from executable flags. Done means users can configure PowerShell.exe flags such as -NonInteractive independently of script parameters.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript, vscode
Domain
developer-experience, devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.