Public/Report/New-KritTcmDeltaReport.ps1

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

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

function New-KritTcmDeltaReport {
    [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 '[KritTcm] New-M365DSCDeltaReport not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run'
    }
    try {
        & 'New-M365DSCDeltaReport' @PSBoundParameters
    } catch {
        Write-Error ('[KritTcm/New-KritTcmDeltaReport] ' + 'New-M365DSCDeltaReport' + ' failed: ' + $_.Exception.Message)
        throw
    }
}