Operations 9 min read

Mastering PowerShell: A Beginner’s Guide to Commands, Help, and Process Management

This article introduces PowerShell, explains its advantages over cmd and Linux shells, walks through launching it, and demonstrates essential commands such as get-help, get-command, get-process, and stop-process for managing Windows processes.

Open Source Linux
Open Source Linux
Open Source Linux
Mastering PowerShell: A Beginner’s Guide to Commands, Help, and Process Management

1. Introduction

1.1 Background

The author was unfamiliar with PowerShell, discovered it through Windows menus and tutorials, and realized its growing importance after reading "Windows PowerShell in Action".

1.2 What is PowerShell?

PowerShell is a powerful shell, similar to Linux bash or the traditional cmd, allowing users to type and execute commands.

Key strengths include:

Strong backing from Microsoft, integrated across Office and other products.

Full compatibility with all cmd commands, with additional cmdlets.

Adoption of Linux shell concepts, enabling system configuration via commands.

Consistent command syntax and self‑contained documentation.

Because of these points, PowerShell can compete with Bash. Its advantages are a uniform Verb-Noun cmdlet format (e.g., Get-Process ) and comprehensive built‑in help that makes discovering commands easy.

However, PowerShell also has drawbacks:

Linux’s dominance in servers and its free, stable nature make many engineers focus on Bash, reducing motivation to learn PowerShell.

Windows GUI tools can accomplish many tasks, so ordinary users may prefer graphical interfaces over a command line.

2. Using PowerShell

The following steps assume no prior PowerShell knowledge and demonstrate how to kill a Notepad process.

2.1 Launch PowerShell

Method 1: Run powershell from an existing cmd window.

Method 2: Type "PowerShell" in the Start menu.

Method 3: Start → All Programs → Accessories → Windows PowerShell.

2.2 Basic Commands

After launching, the interface looks like this:

2.2.1 Get-Help – View Help

Enter Get-Help (or its alias help) to display built‑in documentation for commands.

2.2.2 Get-Command – List Available Commands

Use Get-Command to see all cmdlets, aliases, functions, and their definitions.

2.2.3 Narrowing Down with Prefixes

Since many commands start with Get-, try Get-Command Get-* to find commands related to retrieving information. This reveals Get-Process for process details.

2.2.4 Get-Process – Inspect Processes

Run Get-Process to list all processes. To filter by name, use the -Name parameter with a wildcard, e.g., Get-Process -Name notepad*.

2.2.5 Stop-Process – Terminate a Process

After identifying the process ID (PID), terminate it with Stop-Process -Id <PID>. The command is discovered via Get-Command *process and confirmed with Get-Help Stop-Process.

Through these steps, you can launch PowerShell, explore its help system, discover commands, and manage processes such as killing Notepad.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

automationWindowsPowerShell
Open Source Linux
Written by

Open Source Linux

Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.