# Register the Microsoft RedHat repository curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo 3 # Install PowerShell sudo yum install -y powershell 4 # Start PowerShell pwsh