Public/Report/New-KriticalUtcmDscMofResourceWikiPage.ps1

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

.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: M365DSCDocGenerator
    Params: 3
#>

function New-KriticalUtcmDscMofResourceWikiPage {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)] [String] $OutputPath,
        [Parameter(Mandatory)] [String] $SourcePath,
        [SwitchParameter] $Force
    )

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