← All hands-on practice
Windows · 7 min
CMD or PowerShell?
Windows Terminal is the application that can open different shells. CMD is the older Command Prompt and uses commands such as dir, type and findstr. PowerShell uses cmdlets such as Get-ChildItem, Get-Content and Select-String. Common equivalents are dir ↔ Get-ChildItem (list items), type ↔ Get-Content (read a file), findstr ↔ Select-String (search text), and ipconfig ↔ Get-NetIPConfiguration (inspect networking). They solve similar jobs but are not always exact one-for-one replacements. The biggest difference: CMD commonly passes text between commands; PowerShell can pass structured objects with named properties, so another command can filter data such as a process's CPU value directly.
Start it: free, in your browser, no account
What you will do
- Run the PowerShell process filter. Then compare it with the CMD approach described above: PowerShell filters a CPU property on process objects; CMD tools generally filter text output.
Simulates Windows PowerShell 5.1 on Windows 11 with a small fictional file system (dates in UK format). It never runs commands on your computer or queries a real Windows machine. Output is trimmed where the real command prints much more, and it says so.