# How to install Powershell in all Platforms
[Powershell](https://en.wikipedia.org/wiki/PowerShell) is platform indepent automation cmdlet.
## Generic : Install Powershell
You can install powershell from [github powershell](https://github.com/PowerShell/PowerShell/releases) take your os version and install.
## Windows : Install Powershell
You can install using generic process or using choclatey depending on how you like.
To install choclatey open default **powershell in windows in admin mode**.
`Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))`
You have choco installed in your machine now you can do `choco install powershell-core -y` in a **admin cmd or powershell.**
## Linux : Install Powershell
You can install using generic process or using [snapd](https://snapcraft.io/docs/installing-snap-on-ubuntu) depending on how you like.
To install snapd run:
```bash
sudo apt update
sudo apt install snapd
```
Now you one can [install powershell latest](https://snapcraft.io/powershell)
```bash
sudo snap install powershell --classic
sudo apt update
```
If you don't find `pwsh` in your cmdlet, follow the [snapd bin fix](https://stackoverflow.com/a/57434744).
## Brew : Install Powershell (macOs or Brew)
You can install using generic process or using [`brew install --cask powershell`](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-macos?view=powershell-7.1) depending on how you like.