Private/ArgumentCompleter/Get-OrbitAcSbTeamsNetworkSiteId.ps1
# CsTenantNetworkSite - Network Site function Get-OrbitAcSbTeamsNetworkSiteId { param ( $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters ) $null = Assert-MicrosoftTeamsConnection $Values = (Get-CsTenantNetworkSite | Select-Object Identity).Identity $Values | Where-Object { $_ -like "*$WordToComplete*" } | ForEach-Object { $_ } } # [ArgumentCompleter({ Get-OrbitAcSbTeamsNetworkSiteId @args })] Register-ArgumentCompleter -CommandName Find-TeamsEmergencyCallRout -ParameterName NetworkSite -ScriptBlock { Get-OrbitAcSbTeamsNetworkSiteId @args } |