PowerShell (PS)
PowerShell is Microsoft's command line and scripting language, allowing you to control your computer and automate repetitive tasks by typing commands instead of clicking.
In plain terms
You mostly handle the computer with a mouse: opening windows, clicking icons. PowerShell is the text-based path to the same: you type what you want, and the machine executes it. It is like not pointing at pictures on a restaurant menu but telling the waiter exactly what you want and how.
Its strength lies in repetition and volume. Renaming five hundred files by hand takes an afternoon; with a PowerShell command, it takes a few seconds. If you write multiple instructions into one file, it becomes a script, that is, a recipe the machine can run again at any time.
It differs from the old Windows command line (cmd) and the familiar Bash on Linux in that commands do not pass plain text to one another, but structured data. This makes filtering, sorting, and calculating easier within it.
In the AI era, you hear more about it because coding agents on Windows often work with PowerShell commands: this way they read folders, run programs, and install tools on your behalf.
How it works
- You open a terminal window where a blinking cursor awaits the command.
- You enter a command, whose name usually consists of a verb–noun pair, such as Get-ChildItem (listing items) or Remove-Item (deleting an item).
- The result of a command is not plain text but data with properties, such as a file with its name, size, and date.
- Using the pipe symbol (|), you pass the result to the next command, building a chain: list, filter, sort, save.
- You can save proven command lines into a file with the .ps1 extension, and run this script manually, on a schedule, or with an agent at any time.
An everyday example
An AI tool installation guide asks you to open PowerShell and paste a line. Or the coding agent asks if it can run a PowerShell command on your machine. This is when you encounter that blue or black window.
Who is affected
A common misconception
Limits and risks
- There is no undo button: a poorly written delete command can erase files without asking, skipping the Trash.
- Never paste a command you do not understand, or one requested by an unknown website, email, or caller, as this is a common fraud method.
- If an agent runs commands on your behalf, it does so with your permissions, so review what you allow, especially regarding deletion and installation.
- Two versions coexist (the Windows-integrated 5.1 and the newer 7), and a script does not always run identically on both.
Similar, but not the same
- Parancssor (cmd) – The cmd is Windows' older, simpler command interpreter, which works only with text and knows far less.
- Bash – Bash is the command interpreter with similar purposes in the Linux world, using different commands and syntax. It is available on macOS, but since 2019 the very similar zsh has been the default there.
- Terminal – The terminal is the window where you type, while PowerShell is the program running inside it that interprets your commands.
Related concepts
A brief history
Microsoft released the first version of Windows PowerShell in 2006, with Jeffrey Snover as the lead designer. In 2016, Microsoft launched an open-source version running on Linux and macOS called PowerShell Core, which has been named PowerShell 7 since 2020. The 5.1 version built into Windows remains but receives no new features.
Where things stand
As of late 2026, it is on every Windows machine and is a daily tool for system administrators. With the spread of coding agents, even people who would never open it themselves increasingly see it.
Also known as
PowerShell · Windows PowerShell · PowerShell 7 · PowerShell Core · pwsh · PS · Power Shell · PowerShell-szkript
Sources
This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.