Don't have Telegram yet? Try it now!
https://blog.devoworx.net/2017/10/15/detect-the-installed-sharepoint-edition-using-powershell/
Detect the Installed SharePoint Edition Using PowerShell