When I was at#ESPC18,someone on stage said that he's missing the Module version of the Microsoft.SharePoint.PowerShell PSSnapin.
With a module we could leverage the auto-load capabilities of PowerShell. And never see this error message again what we all saw so many times:
The term 'Get-SPSite' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
I created a module to cover SharePoint Server 2019 a couple of months ago: