All apps/PowerShell

PowerShell

powershell

A cross-platform task automation solution made up of a command-line shell, a scripting language, and a configuration management framework.

Runs as pwsh, powershell|macOS, Linux, Windows|learn.microsoft.com

Command form

ai-draft · 3 tasks · 8 fields

Start pwsh with common startup switches or run a script file or a command string. Remoting, encoded commands and apartment switches are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui powershell
Start PowerShellExample values, fixed in this page — nothing here reaches a terminal
Basic
Skip profiles
-NoProfile
Hide banner
-NoLogo
Advanced
Working directory
directory
TasksEach one presets the form for one job
Clean interactive session
no_profileno_logoworking_directory
Run a command
no_profilenon_interactiveno_exitcommand
Run a script file
no_profilenon_interactivefile
ParametersOnly these flags are editable in the form
Skip profiles
Do not load the PowerShell profiles.
boolean
-NoProfile
Hide banner
boolean
-NoLogo
Stay open after running
boolean
-NoExit
Non-interactive
Fail instead of prompting for input.
boolean
-NonInteractive
Working directory
path
-WorkingDirectory
Output format
enum
-OutputFormatTextXML
Command
PowerShell command text to run. Must be last on the command line.
string
-Command
Script file
Script to run. Must be last on the command line.
path
-File
SourcesEvery flag above is checked against these
help
-File | -f -Command | -c -NoExit | -noe -NoLogo | -nol -NonInteractive | -noni -NoProfile | -nop -WorkingDirectory | -wd -ExecutionPolicy | -ex | -ep -OutputFormat | -o | -of Valid values are "Text" (text strings) or "XML" (serialized CLIXML format). -Version | -v -WindowStyle | -w Valid values are Normal, Minimized, Maximized, and Hidden.
helppwsh -h (PowerShell 7)

Before it fills your prompt, Otty checks the installed pwsh against its version. A form that does not match your version is not offered.