Skip to content

pwsh

pwsh documentation

footman._stubs.pwsh.Pwsh

Bases: Tool

__call__

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

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