$Navigation = @(
    New-UDListItem -Label 'Home' -OnClick {
        Invoke-UDRedirect -Url '/Home'
    }
    switch($env:computername){
        "ITDWINAUTOT1" {
            New-UDListItem -Label 'Infra-VMware.Snapshot_NPD' -OnClick {
            Invoke-UDRedirect -Url '/NPD'
            }
        }
        "ITDWINAUTOP1" {
            New-UDListItem -Label 'Infra-VMware.Snapshot_PRD' -OnClick {
            Invoke-UDRedirect -Url '/PRD'
            }
        }
    }
    
    New-UDListItem -Label 'Live Snapshots' -OnClick {
        Invoke-UDRedirect -Url '/LiveSnapshots'
    }
)

New-UDApp -Title 'PowerShell Universal' -Pages @(
    Get-UDPage -Name 'Home'
    switch($env:computername){
        "ITDWINAUTOT1" { Get-UDPage -Name 'NPD' }
        "ITDWINAUTOP1" { Get-UDPage -Name 'PRD' }
    }
    Get-UDPage -Name 'LiveSnapshots'
) -Navigation $Navigation