Introduction

This is the content list of this article:

A - What is PowerShell? [ref]

PowerShell is a cross-platform task automation solution made up of

PowerShell runs on Windows, Linux, and macOS.

B - The Windows PowerShell ISE

Windows PowerShell ISE (Integrated Scripting Environment) is a GUI tool for building and debugging PowerShell scripts, functions, and modules.

Key Features

The Windows PowerShell ISE lets you customize some aspects of its appearance. It also has its own Windows PowerShell profile script.

Elements

from How to use Windows PowerShell ISE - Beginners Tutorial (thewindowsclub.com)

These elements make it easy for a user to run, edit, and execute the commands and scripts.

C - Cmdlets

PowerShell commands are known as cmdlets.

Here are 25 basic PowerShell comlets,

Command name Alias Description
Set-Location cd, chdir, sl Sets the current working location to a specified location.
Get-Content cat, gc, type Gets the content of the item at the specified location.
Add-Content ac Adds content to the specified items, such as adding words to a file.
Set-Content sc Writes or replaces the content in an item with new content.
Copy-Item copy, cp, cpi Copies an item from one location to another.
Remove-Item del, erase, rd, ri, rm, rmdir Deletes the specified items.
Move-Item mi, move, mv Moves an item from one location to another.
Set-Item si Changes the value of an item to the value specified in the command.
New-Item ni Creates a new item.
Start-Job sajb Starts a Windows PowerShell background job.
Compare-Object compare, dif Compares two sets of objects.
Group-Object group Groups objects that contain the same value for specified properties.
Invoke-WebRequest curl, iwr, wget Gets content from a web page on the Internet.
Measure-Object measure Calculates the numeric properties of objects, and the characters, words, and lines in string objects, such as files …
Resolve-Path rvpa Resolves the wildcard characters in a path, and displays the path contents.
Resume-Job rujb Restarts a suspended job
Set-Variable set, sv Sets the value of a variable. Creates the variable if one with the requested name does not exist.
Show-Command shcm Creates Windows PowerShell commands in a graphical command window.
Sort-Object sort Sorts objects by property values.
Start-Service sasv Starts one or more stopped services.
Start-Process saps, start Starts one or more processes on the local computer.
Suspend-Job sujb Temporarily stops workflow jobs.
Wait-Job wjb Suppresses the command prompt until one or all of the Windows PowerShell background jobs running in the session are …
Where-Object ?, where Selects objects from a collection based on their property values.
Write-Output echo, write Sends the specified objects to the next command in the pipeline. If the command is the last command in the pipeline,…

from Windows PowerShell Commands Cheat Sheet (PDF), Tips & Lists (comparitech.com)

D - Scripting

A script is a plain text file that contains one or more PowerShell commands. PowerShell scripts have a .ps1 file extension.

How To Run A PowerShell Script

There are two main ways to make a PowerShell script:

E - Difference Between Command prompt and PowerShell

Command prompt, also known as CMD, is a default interpreter in the Windows operating system and was first released in 1987.

The table below will present a comparative analysis of the Windows PowerShell and Windows Command Prompt

PowerShell is an object-oriented task automation engine and scripting language that assists the administrator to automate and configure administrative tasks. On the other hand, the command prompt is a native application in the Windows operating system that allows the user to perform different tasks using the commands.

Reference