Private/PartnerMenu/Start-PartnerMenuTenantCreation.ps1

function Start-PartnerMenuTenantInitilization() {

    $TenantDomain = Read-Host "Please enter the tenant default domain (e.g. customerdomain.onmicrosoft.com)"

    Connect-CustomerGraph -CustomerTenantId $Script:config.PartnerTenantId -FlowType Delegated
    $Tenant = Get-PartnerCustomer -DefaultDomainName $TenantDomain
    if(!$Tenant) {
        Write-Error "Failed to find tenant with default domain: $($TenantDomain)"
        Read-Host "Press any key to continue.."
        Start-PartnerMenu
    }
    Clear-Host

    Get-PartnerMenuHeader -SectionString "($($Tenant.companyProfile.companyName)) - Tenant Initilization"

    Initialize-CustomerTenant -CustomerTenantId $Tenant.id

    Read-Host "Press any key to continue.."
}