Public/Graph/Invoke-KritTcmGraphShimGetResource.ps1

<#
.SYNOPSIS
    Krit.TCM wrapper over Microsoft365DSC helper Invoke-M365DSCGraphShimGetResource
    (category: Graph, module: M365DSCGraphShim).

.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: Invoke-M365DSCGraphShimGetResource
    Category: Graph
    Module: M365DSCGraphShim
    Params: 3
#>

function Invoke-KritTcmGraphShimGetResource {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)] [IDictionary] $BoundParameters,
        [Parameter(Mandatory)] [String] $CollectionUri,
        [String] $SingleItemUri
    )

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