Public/Graph/ConvertTo-KriticalUtcmGraphShimUri.ps1

<#
.SYNOPSIS
    Kritical.UTCM wrapper over Microsoft365DSC helper ConvertTo-M365DSCGraphShimUri
    (category: Graph, module: M365DSCGraphShim).

.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: Graph
    Module: M365DSCGraphShim
    Params: 9
#>

function ConvertTo-KriticalUtcmGraphShimUri {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)] [String] $UriTemplate,
        [String] $Filter,
        [String[]] $Property,
        [String[]] $ExpandProperty,
        [Int32] $Top,
        [Int32] $Skip,
        [String] $Search,
        [String[]] $Sort,
        [String] $CountVariable
    )

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