https://everything-powershell.com/exchange-2019-check-edition-with-powershell/
Exchange 2019 - Check edition with PowerShell