Private/Test-HostSupported.ps1
function Test-HostSupported() { $Whitelist = @("ConsoleHost","Visual Studio Code Host") if ($Whitelist -inotcontains $Host.Name) { Throw "This host is $($Host.Name) and does not support an interactive menu." } } |