Public/Intune/Get-KriticalUtcmDRGComplexTypeToHashtable.ps1

<#
.SYNOPSIS
    Kritical.UTCM wrapper over Microsoft365DSC helper Get-M365DSCDRGComplexTypeToHashtable
    (category: Intune, module: M365DSCDRGUtil).

.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: Intune
    Module: M365DSCDRGUtil
    Params: 1
#>

function Get-KriticalUtcmDRGComplexTypeToHashtable {
    [CmdletBinding()]
    param(
        [Object] $ComplexObject
    )

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