If you have used traditional command lines like Linux Bash or Windows Command Prompt, piping data (using the | symbol) is like pouring water through a garden hose. Data passes as plain, unstructured lines of text. To get specific information, you have to cut, slice, and filter text manually.
PowerShell does something completely different: instead of a stream of water, it passes solid Lego bricks (Objects). Each brick has distinct labels and buttons (called Properties and Methods) that you can grab directly without guessing.
Filtering Lego Bricks with Where-Object
Because PowerShell understands objects, you do not need complex text parsing tools like grep or awk. You simply ask for the property name you care about.
# Step 1: Get all running applications (Lego bricks)
# Step 2: Filter only apps using more than 100 Megabytes of RAM
Get-Process | Where-Object WorkingSet64 -gt 100MBPicking Exact Properties with Select-Object
Imagine your Lego brick has lots of information, but you only want to read the name and ID. You use Select-Object to keep only the pieces you need.
# Query processes, filter heavy ones, and display only Name and Memory in a clean table
Get-Process |
Where-Object WorkingSet64 -gt 100MB |
Select-Object -Property ProcessName, Id, WorkingSet64Quick Summary for Beginners
- Text vs Objects: Bash passes raw text strings; PowerShell passes rich, structured objects.
- Where-Object: Your smart filter (like an
ifcondition) for selecting items. - Select-Object: Your organizer to pick and display only the columns you want.