How to Use PowerShell: Start With Read-Only Commands

Start learning PowerShell with commands that display information before trying ones that change the computer. Open it as a regular user, check its version, and practice listing files, finding commands, and reading their help.

These basic examples work in both the built-in Windows PowerShell and modern PowerShell. Enter one command at a time and read the result before moving on; a script file isn't required to begin.

Open a shell and check which version is running

Search Start for Windows PowerShell and open it normally for these exercises. Save Run as administrator for tasks that need extra access. If PowerShell 7 is installed, search for that separate app by name.

Type this command and press Enter:

$PSVersionTable.PSVersion

The result shows which version you're running in this window. Windows PowerShell 5.1 and PowerShell 7 can coexist, so the name of a shortcut alone isn't enough when instructions require a particular edition.

Drawing of PowerShell showing the command used to check its version

Windows Terminal holds command shells in tabs, including PowerShell and Command Prompt. PowerShell commands need a PowerShell tab, rather than Command Prompt. Switch to a PowerShell profile before changing the command.

The PowerShell launch options explain how to choose the shell and run it as administrator when another task needs that access. These information checks all work without administrator access.

List a folder without changing its contents

Run the following command to see your current location:

Get-Location

Then list the files and folders in that location:

Get-ChildItem

PowerShell lists the files and folders in your current folder. If nothing is listed, the folder might be empty. You don't necessarily need a more powerful command. Check the location before deciding that files are missing.

To list your user folder directly, give the command its path:

Get-ChildItem -Path $HOME

$HOME is a variable containing your user folder's path. A variable holds a value; the dollar sign is part of its name in PowerShell. This command reads that value and lists the folder without moving or deleting anything.

The word following the dash, Path, is a parameter. Parameters tell a command which input or option to use. Once that pattern feels familiar, you can read many longer commands as a command followed by its options.

When a folder path contains spaces, surround the path with quotes. Use LiteralPath when a name contains characters that PowerShell would otherwise treat as a pattern, such as square brackets.

Find the command instead of guessing its name

Run this search to find commands whose names contain the word process:

Get-Command *Process*

The asterisks are wildcards: they match other characters before or after the word. The results can include commands that read processes and commands that stop them. Check what each result does before running it.

Most PowerShell commands use a verb and noun joined by a hyphen. Get-Process reads process information; Stop-Process stops a process. Pay attention to the verb: it tells you what the command will do.

Try the information command:

Get-Process

Expect a list of running processes with columns of information. The names and values differ between computers. You don't need to match someone else's process count or memory values to know the command has worked.

If a command isn't recognized, check spelling and the shell version. It might belong to an optional module, a package of related commands. Read its instructions before installing a similarly named package.

Read examples before adding unfamiliar parameters

Microsoft's Get-Help reference describes how to read command help. For the folder-listing command, enter:

Get-Help Get-ChildItem -Examples

This asks for examples rather than the full reference. If local help hasn't been downloaded, the result can be limited. If the command has an online help page, open it with:

Get-Help Get-ChildItem -Online

Read which parameter accepts a path and what the example does with it. Replace example paths with your own location only after that makes sense. A command from an unrelated example can run without an error yet give you the wrong result.

I'd keep the help reference open while learning. It's faster to check what an option does than to undo a change made because its name sounded right.

Pass results into another command

The pipe character, |, sends the result of one command into the next. Each item PowerShell sends has named details, called properties. The next command can use those details to sort the items or pick what to display.

Try a short list of process names:

Get-Process | Select-Object -First 5 -Property ProcessName

The first command reads the processes. The second takes the first five returned items and displays their ProcessName property. This isn't a list of the five busiest processes; the command hasn't sorted them by resource use.

For long output, select the properties you need instead of reading every column. For a practical follow-up, the PowerShell connection test uses information commands to check a destination and port.

Interrupt a command and report an error accurately

Press Ctrl+C to interrupt a running command. When the prompt returns, the shell is ready for another command. Type exit and press Enter when you're finished with that session.

A permission error doesn't mean you should always run PowerShell as administrator. Check whether the task changes a protected setting. Use administrator access only when you understand what the command does and why it needs that access.

Send support the command, error, and PowerShell version. Remove personal paths or secrets before sharing them. On a managed PC, ask IT about restrictions before changing execution policies or security settings.

The Short Version

Practice Get-Location, Get-ChildItem, and Get-Process in the right shell version. Discover commands with Get-Command and read their Get-Help entries. Add pipes once those commands make sense. Use administrator access only when needed.

Checked December 4, 2026.

If you have any business, I can build it online

Hi, I’m Hamza. I’ve been building websites and online shops for business owners since 2019, and I also built this site you’re reading.

Tell me what business you have or what you’re working on. I’ll look into how much it can grow online, and then we talk. You don’t have to buy anything or hire me first.

Chat with me on my site and I’ll show you proof of businesses I’ve helped and how they’ve grown.

Written by Isaac Smith

Isaac Smith is the founder and editor of PC Glance, a website that covers computers, laptops, and technology. He is a tech enthusiast and a computer geek who loves to share his insights and help his readers make smart choices when buying tech gadgets or laptops. He is always curious and updated about the latest tech trends.

More from Isaac Smith

Leave a Comment