PowerShell is a task-based command-line shell and scripting language developed in .NET. Initially just a Windows component.
You can install it on any distribution Linux . In this article we’ll look at how to do this on Ubuntu 21.04 or higher. And the first steps, plus tips for other distros.
Run the commands below in that sequence:
Using PowerShell directly from the terminal:
Will appear:
To exit press:
Let’s run a Hello, World!.
Create the file and insert the content into it:
nvim hello-world.pwsh
Rotate:
Or simply:
nvim hello-world.pwsh
Give execution permission and run:
For other distros see the here procedure.