🌀

The Pipeline: PowerShell's Core Philosophy

Unlike bash (which pipes text strings), PowerShell pipes live .NET objects with full properties and methods. Each stage receives structured objects, processes them, and emits new objects. Use the interactive builder below to construct real pipelines, then animate the data flow.

How the Pipeline Works

The pipe character | passes objects from left to right. Each cmdlet processes objects one at a time (streaming) unless it needs the full set (like Sort-Object).

[Process] objects
Shell vs PowerShell Pipeline
Bash: pipes strings → text manipulation required
PowerShell: pipes objects → access any property directly
Streaming vs Blocking
Streaming: objects pass one-at-a-time (ForEach-Object, Where-Object)
Blocking: requires all objects first (Sort-Object, Group-Object)
Interactive Pipeline Builder

Select a command for each pipeline stage. The assembled command appears below with object property inspection.

1. Source
2. Filter
3. Transform
4. Output

Object Properties at Each Stage

Object Flow Demonstration

Watch how Get-Process | Where-Object {$_.CPU -gt 5} | Sort-Object CPU | Select-Object Name,CPU filters and transforms objects at each stage. Click Run to animate.

Annotated Pipeline Examples

Finished building and animating pipelines? Mark this module complete.