This material is presented better and more completely in Microsoft's official documentation: https://learn.microsoft.com/en-us/powershell/scripting/learn/ps101/01-getting-started

2020 Powershell Crash Course Recording

2020 Powershell Crash Course PPT Deck

Errata

Execution Policy:

get-executionpolicy -list

Scopes:

Execution policy is not Security

Strictmode:

"PowerShell generates a terminating error when the content of an expression, script, or script block violates basic best-practice coding rules."

In other words, it'll ruin your day if you don't follow PS best practices. The primary example I'm aware of is trying to operate on a non-existent variable. You can turn this off with set-executionpolicy -off, but it's a good idea to try to keep it on (see below script to add to PS profile). This is disabled by default.

3.0

Latest

set-strictmode -latest

Set for all PS sessions