Note: I am not suggesting this as replacement of your Linux shell, simply for learning purposes without having to boot into Windows, another tool in your belt. Here is an article by OTW on the subject of Powershell
So, Microsoft went to bed and bumped their head and now Powershell is open-source, and available on Linux. Powershell is like an improved, more powerful cmd.exe, which took a lot of inspiration from Linux, and if it’s worth knowing your Windows cmd line, it’s definitely worth knowing Powershell. It’s one of those things that I’ve been meaning to get some amount of practice with for the longest time, but just never seemed to hang around Windows long enough after closing Steam. But now, none of that matters! Here’s how to install Powershell on your Linux, as it’s a worthwhile thing to at least be familiar with Powershell. For example, if you’ve just penetrated your way onto a Windows box, well, it’s rather obvious why knowing your Powershell would come in handy… If you’re thinking, “Power who?”, then stop thinking, and go google it Powershell also has an integrated scripting environment(ISE).
Main info on installation for different platforms aswell as links to tutorials etc. appears to be here.
I’ll leave you to read the above articles, and check out their links. But here’s how I installed it on my Lubuntu 16.04:
Downloaded the 16.04 .deb file from here:
-> Direct link to Ubuntu 16.04 file
Downloaded these packages like so:
sudo apt-get install libunwind8 libicu55
Installed the .deb file
sudo dpkg -i powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb
That was it. Bringing up a terminal and typing
powershellworked straight away.