This article mostly applies to Powershell version 6 or later (formerly known as Powershell Core). Check edition via Powershell variable:
$PSEdition (should show core for modern powershell)
This article applies to Powershell version 6 or later (formerly also known as Powershell Core).
Overview of the script,
Please be aware of notation below in command outlines.
$ represents a command and rests of the lines following that line are output. The tradition is to utilize the "> " prompt for Windows Command Shell, however, I come from a Unix background and I defy that.