Installing PowerShell - PowerShell
Over the years, there have been many releases of PowerShell. Initially, Windows PowerShell was built on the .NET Framework and only worked on Windows systems. With the current release, PowerShell uses .NET Core 3.1 as its runtime. PowerShell runs on Windows, macOS, and Linux platforms. PowerShell Core is an Open Source project on GitHub.
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7