Howtogeek posted How to Install Microsoft PowerShell on Linux or OS X
A quote from the article:
PowerShell is now open source, and available for Linux and Mac. You can download official packages from Microsoft for the 64-bit versions of Ubuntu 16.04, Ubuntu 14.04, CentOS 7, Red Hat Enterprise Linux 7, and Mac OS X 10.11.How to Install Microsoft PowerShell on Linux or OS X @ Howtogeek