internal/functions/get-tenantfromemail.ps1

function Get-TenantFromEmail($email)
{
    return $email.Substring($email.LastIndexOf('@') + 1).Trim();
}