Public/Module/Update-KritTcmDependencies.ps1

<#
.SYNOPSIS
    Krit.TCM wrapper over Microsoft365DSC helper Update-M365DSCDependencies
    (category: Module, module: M365DSCModuleMgmt).

.DESCRIPTION
    Auto-scaffolded wave .1514 by New-KritTcmFromM365DscHelpers.ps1.
    Thin delegating passthrough — logic stays in Microsoft365DSC upstream;
    Krit.TCM provides the friendly namespace + citation registration
    for HARD RULE 20 discipline.

    Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling.

.NOTES
    Wave .1514. Underlying cmdlet: Update-M365DSCDependencies
    Category: Module
    Module: M365DSCModuleMgmt
    Params: 7
#>

function Update-KritTcmDependencies {
    [CmdletBinding()]
    param(
        [SwitchParameter] $Force,
        [SwitchParameter] $ValidateOnly,
        [Object] $Scope,
        [String] $Proxy,
        [String] $Repository,
        [SwitchParameter] $UsePowerShellGet,
        [SwitchParameter] $Development
    )

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