Public/Get-KritTcmBanner.ps1

function Get-KritTcmBanner {
    <#
    .SYNOPSIS
        Return the Kritical TCM banner from canonical, bundled, or text fallback paths.
    #>

    [CmdletBinding()]
    param()

    $manifestPath = Join-Path $PSScriptRoot '..\Krit.TCM.psd1'
    $manifest = Test-ModuleManifest -Path $manifestPath -ErrorAction SilentlyContinue
    $paths = @()
    if ($manifest -and $manifest.PrivateData.Kritical) {
        $paths += @($manifest.PrivateData.Kritical.CanonicalBrandBannerPaths)
        if ($manifest.PrivateData.Kritical.BundledBrandBannerRelPath) {
            $paths += (Join-Path (Split-Path -Parent $manifestPath) $manifest.PrivateData.Kritical.BundledBrandBannerRelPath)
        }
    }

    foreach ($path in @($paths | Where-Object { -not [string]::IsNullOrWhiteSpace([string]$_) })) {
        if (Test-Path -LiteralPath $path) {
            return (Get-Content -LiteralPath $path -Raw)
        }
    }

    return 'Kritical Tenant Configuration Management'
}