Possibly possible to install Powershell with one line of code
Scott Hanselman wrote about installing Powershell as a global tool here.
It goes something like:
dotnet tool install --global PowerShell
Update
As Windows10 nowadays comes with Powershell this is not so much of a problem any more.