PowerShell is included with the Windows Management Framework. Installation and Setup are not required on modern versions of Windows.
Updates to PowerShell can be accomplished by installing a newer version of the Windows Management Framework.
“Beta” version of PowerShell 6 can be installed on other platforms. The installation packages are available here.
For example, PowerShell 6, for Ubuntu 16.04, is published to package repositories for easy installation (and updates).
To install run the following:
# Import the public repository GPG keys
curl <https://packages.microsoft.com/keys/microsoft.asc> | sudo apt-key add -
# Register the Microsoft Ubuntu repository
curl <https://packages.microsoft.com/config/ubuntu/16.04/prod.list> | sudo tee /etc/apt/sources.list.d/microsoft.list
# Update apt-get
sudo apt-get update
# Install PowerShell
sudo apt-get install -y powershell
# Start PowerShell
powershell
After registering the Microsoft repository once as superuser, from then on, you just need to use sudo apt-get upgrade powershell
to update it. Then just run powershell