Public/Schema/Get-KriticalUtcmPropertyReport.ps1

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

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

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

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