if( $RoleHotmailMigration -eq $true -or $ServicePlanSettings.Organization.OpenDomainRoutingEnabled) { Set-Transportconfig ...