Download powershell-6.0.0-beta.5-osx.10.12-x64.pkg from https://github.com/PowerShell/PowerShell/releases/latest:
sudo installer -pkg powershell-6.0.0-beta.5-osx.10.12-x64.pkg -target /
Download powershell-6.0.0-beta.5-osx.10.12-x64.pkg from https://github.com/PowerShell/PowerShell/releases/latest:
sudo installer -pkg powershell-6.0.0-beta.5-osx.10.12-x64.pkg -target /