Public/Module/Update-KriticalUtcmModule.ps1

<#
.SYNOPSIS
    Kritical.UTCM wrapper over Microsoft365DSC helper Update-M365DSCModule
    (category: Module, module: M365DSCModuleMgmt).

.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: Module
    Module: M365DSCModuleMgmt
    Params: 5
#>

function Update-KriticalUtcmModule {
    [CmdletBinding()]
    param(
        [Object] $Scope,
        [String] $Proxy,
        [String] $BaseRepository,
        [String] $DependencyRepository,
        [SwitchParameter] $NoUninstall
    )

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