Install PowerShell on macOS
Since PowerShell is available for other platforms, I use it, often during travel, to test the logic/processes of scripts.
Honestly, there are limitations and is not a complete replacement for PowerShell on windows platforms.
There are two ways to install it:
1. Installation of pbk
sudo installer -pkg powershell-6.0.0-rc.2-osx.10.12-x64.pkg -target /
Not tested yet.
Installation with pbk, shown in the Video below
Steps in the Video
a. Navigate to the download directory
b. Check that the file name is correct.
c. Confirm the installation
d. Open the application
e. Small test