Hi
Please try the modification made in your script in RED.
#import SQL Server module
Import-Module SQLPS -DisableNameChecking
Set-Location "SQLSERVER:\SQLRegistration\Central Management Server Group\<<CentralManagementSQLServerMame>>"
Get-ChildItem
Vishnu Gupthan
PowershellAcademy
www.powershellacademy.com