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