Private/ArgumentCompleter/Get-OrbitAcSbCallingPlanLicense.ps1

# OrbitMSGraphLicenses - CallingPlanLicense
function Get-OrbitAcSbCallingPlanLicense {
  param ( $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters )
  if (-not $global:OrbitMicrosoft365Licenses) { $global:OrbitMicrosoft365Licenses = Get-Microsoft365License -WarningAction SilentlyContinue }
  $global:OrbitMSGraphCallingPlan = ($global:OrbitMicrosoft365Licenses | Where-Object LicenseType -EQ 'CallingPlan')
  $Values = $global:OrbitMSGraphCallingPlan.ParameterName.Split('', [System.StringSplitOptions]::RemoveEmptyEntries) | Sort-Object
  $Values | Where-Object { $_ -like "*$WordToComplete*" } | ForEach-Object { $_ }
}
# [ArgumentCompleter({ Get-OrbitAcSbCallingPlanLicense @args })]
Register-ArgumentCompleter -CommandName New-TeamsUserVoiceConfig -ParameterName CallingPlanLicense -ScriptBlock { Get-OrbitAcSbCallingPlanLicense @args }
Register-ArgumentCompleter -CommandName Set-TeamsUserVoiceConfig -ParameterName CallingPlanLicense -ScriptBlock { Get-OrbitAcSbCallingPlanLicense @args }