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.
Link:
https://github.com/PowerShell/PowerShell/blob/master/docs/KNOWNISSUES.md
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 /
2. HomeBrew
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
Download Source:
https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-rc.2/powershell-6.0.0-rc.2-osx.10.12-x64.pkg