Private/Wait-LoggingFlush.ps1

function Wait-LoggingFlush {
    [CmdletBinding()]
    param()

    try {
        Wait-Logging
    }
    catch {
        Write-Verbose "Failed to flush logging: $($_.Exception.Message)"
    }
}