Public/PartnerMenu/Start-PartnerMenu.ps1
function Start-PartnerMenu() { $MenuItems = [ordered]@{ 1 = 'Select an existing tenant.' 2 = 'Initialize a new tenant.' 3 = 'Get domain name information.' 4 = 'Exit.' } $SelectedOption = ($MenuItems | Out-ConsoleGridView -Title 'Welcome to the Jysk IT Partner Menu' -OutputMode Single).Name switch ($SelectedOption) { "1" { Start-PartnerMenuTenantSelection } "2" { Start-PartnerMenuTenantInitilization } "3" { Start-PartnerMenuDomainInformation } "4" { exit } Default { exit } } } |