Public/Export/Get-KriticalUtcmMinimalExportBlocks.ps1

<#
.SYNOPSIS
    Kritical.UTCM wrapper over Microsoft365DSC helper Get-M365DSCMinimalExportBlocks
    (category: Export, module: M365DSCExportUtil).

.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: Export
    Module: M365DSCExportUtil
    Params: 1
#>

function Get-KriticalUtcmMinimalExportBlocks {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)] [Hashtable] $UnresolvedTargets
    )

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