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