Public/Report/New-KriticalUtcmDeltaReport.ps1

<#
.SYNOPSIS
    Kritical.UTCM wrapper over Microsoft365DSC helper New-M365DSCDeltaReport
    (category: Report, module: M365DSCReport).

.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: Report
    Module: M365DSCReport
    Params: 14
#>

function New-KriticalUtcmDeltaReport {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)] [String] $Source,
        [Parameter(Mandatory)] [String] $Destination,
        [String] $OutputPath,
        [Boolean] $DriftOnly,
        [Boolean] $IsBlueprintAssessment,
        [String] $HeaderFilePath,
        [Array] $Delta,
        [String] $Type,
        [Array] $ExcludedProperties,
        [Array] $ExcludedResources,
        [SwitchParameter] $UseVariableSubstitution,
        [String] $SourceConfigurationDataPath,
        [String] $DestinationConfigurationDataPath,
        [String[]] $ExcludedSubstitutionProperties
    )

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