import-Module Servermanager in datacenter 2019 code example
Example: Powershell Core server manager module
Install-Module -Name WindowsCompatibility -Scope CurrentUser -Force -AllowClobber
Import-WinModule -Name ServerManager
Get-Command -Module ServerManager