private/Write-HostOSDeployBanner.ps1

function Write-HostOSDeployBanner {
    <#
    .SYNOPSIS
        Marks the OSDeploy banner as displayed for the current session
 
    .DESCRIPTION
        Sets $script:OSDeployBannerDisplayed to true when the flag is not already set.
        Returns immediately when the flag is already true. The current implementation
        does not write banner text because its Write-Host statement is disabled.
 
    .EXAMPLE
        PS> Write-HostOSDeployBanner
 
        Marks the banner as displayed unless it was already marked in this session.
 
    .INPUTS
        None. This function does not accept pipeline input.
 
    .OUTPUTS
        None.
 
    .NOTES
        Author: David Segura
        Company: Recast Software
        Version: 1.0.0
        Date: 2026-08-28
 
        Modifies the script-scoped OSDeployBannerDisplayed variable.
    #>

    if ($script:OSDeployBannerDisplayed) { return }
    # Write-Host 'OSDeploy by Recast is a PowerShell Preview Module (expires 2026-08-31).' -ForegroundColor DarkYellow
    $script:OSDeployBannerDisplayed = $true
}