If you are having to work with a Microsoft email server but typically use a Linux box for your daily work, being able to use Powershell to access it can be handy!
The page that MSFT provides to show how to install is at: https://docs.microsoft.com/en-us/powershell/scripting/install/install-fedora?view=powershell-7.2
Now one note is that version 7.2 can have trouble with some versions of Linux, and this page could be helpful to explain that: https://issueexplorer.com/issue/PowerShell/PowerShell/16382
The error that I got when using v7.2 was: “New-PSSession: This parameter set requires WSMan, and no supported WSMan client library was found. WSMan is either not installed or unavailable for this system.”
The solution is to downgrade, this worked for me:
yum –showduplicates list available powershell
yum “downgrade” powershell-7.1.5-1.rhel.7