Get-Branding.ps1

function Get-Branding {
    Import-module Microsoft.Graph.Identity.DirectoryManagement 
    $Tenants = Get-Tenants

    $Tenants | ForEach-Object {
        $Tenant = $_
        Write-Host "Processing $($Tenant.DefaultDomainName)" -NoNewline
        try {

            Connect-CustomerGraph -CustomerTenantId $Tenant.CustomerId
            $Branding = Get-MgOrganizationBranding -OrganizationId $Tenant.CustomerId -ErrorAction SilentlyContinue

                if( !$Branding ) {
                    Write-Host " - No branding found" -ForegroundColor Yellow -NoNewline
                    $NewBranding = New-MgOrganizationBrandingLocalization -OrganizationId $Tenant.CustomerId -SignInPageText '**Har du udfordringer med login?** Kontakt [Jysk IT](https://jyskit.dk) på 76 60 23 23'
                    Write-Host " - Created branding" -ForegroundColor Green
                }
                else {
                    Write-Host " - Found branding ($($Branding.SignInPageText))" -ForegroundColor Green
                }
        }
        catch {
        }
    }
}

Get-Branding