How to install powershell in Ubuntu
Command-line tool available on various platforms
Work Instruction
add PowerShell repository
wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
Update repository:
sudo apt-get update
Install PowerShell:
sudo apt-get install -y powershell
Run
pwsh