Private/Test-HostSupported.ps1

1
2
3
4
5
6
7
function Test-HostSupported() {
    $Whitelist = @("ConsoleHost")

    if ($Whitelist -inotcontains $Host.Name) {
        Throw "This host is $($Host.Name) and does not support an interactive menu."
    }
}