Public/Utility/Remove-KriticalUtcmAuthenticationParameter.ps1

<#
.SYNOPSIS
    Kritical.UTCM wrapper over Microsoft365DSC helper Remove-M365DSCAuthenticationParameter
    (category: Utility, module: M365DSCUtil).

.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: Utility
    Module: M365DSCUtil
    Params: 1
#>

function Remove-KriticalUtcmAuthenticationParameter {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)] [Hashtable] $BoundParameters
    )

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