Public/Schema/Get-KritTcmPropertyReport.ps1

<#
.SYNOPSIS
    Krit.TCM wrapper over Microsoft365DSC helper Get-PropertyReport
    (category: Schema, module: M365DSCCheckProperties).

.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: Get-PropertyReport
    Category: Schema
    Module: M365DSCCheckProperties
    Params: 2
#>

function Get-KritTcmPropertyReport {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)] [String] $DestinationFolder,
        [PSCredential] $Credential
    )

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