Page https://dbatools.io/getting-started/
Usage examples
Get-DbaCmsRegServer -SqlInstance $instance | Out-GridView
Error:
Get-DbaCmsRegServer : The term 'Get-DbaCmsRegServer' 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.
It should be:
Get-DbaRegServer -SqlInstance $instance | Select-Object ServerName | Out-GridView