Want to use PowerShell on your CentOS box? Easier than ever!

# Change to root
sudo su 

# Register the Microsoft RedHat repository
curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/microsoft.repo

# Exit root mode
exit

# Install PowerShell
sudo yum install -y powershell

# Start PowerShell
powershell

# Update PowerShell
sudo yum update powershell