Public/Connection/Get-KriticalUtcmAuthenticationMode.ps1

<#
.SYNOPSIS
    Kritical.UTCM wrapper over Microsoft365DSC helper Get-M365DSCAuthenticationMode
    (category: Connection, module: M365DSCConnection).

.DESCRIPTION
    Thin delegating passthrough — logic stays in Microsoft365DSC upstream;
    Kritical.UTCM provides the friendly namespace + citation registration.

    Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling.

.NOTES
    Category: Connection
    Module: M365DSCConnection
    Params: 1
#>

function Get-KriticalUtcmAuthenticationMode {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)] [Hashtable] $Parameters
    )

    if (-not (Get-Command -Name 'Get-M365DSCAuthenticationMode' -ErrorAction SilentlyContinue)) {
        throw '[KriticalUtcm] Get-M365DSCAuthenticationMode not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run'
    }
    try {
        & 'Get-M365DSCAuthenticationMode' @PSBoundParameters
    } catch {
        Write-Error ('[KriticalUtcm/Get-KriticalUtcmAuthenticationMode] ' + 'Get-M365DSCAuthenticationMode' + ' failed: ' + $_.Exception.Message)
        throw
    }
}