Skip to content

pwsh

pwsh documentation

toolroom._stubs.pwsh.Pwsh

Bases: Tool[_R]

__call__

__call__(command: str, /, **flags: Any) -> _R

Run a command string in PowerShell — pwsh -c "<command>".

A real shell: pipes, redirects, globbing and $VAR all work. Reach for this when you deliberately want a shell; run("…") stays shell-free.

Parameters:

Name Type Description Default
command str

the command line to run in PowerShell.

required