Public/Graph/Invoke-KriticalUtcmGraphShimGetResource.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Invoke-M365DSCGraphShimGetResource (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: 3 #> function Invoke-KriticalUtcmGraphShimGetResource { [CmdletBinding()] param( [Parameter(Mandatory)] [IDictionary] $BoundParameters, [Parameter(Mandatory)] [String] $CollectionUri, [String] $SingleItemUri ) if (-not (Get-Command -Name 'Invoke-M365DSCGraphShimGetResource' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Invoke-M365DSCGraphShimGetResource not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Invoke-M365DSCGraphShimGetResource' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Invoke-KriticalUtcmGraphShimGetResource] ' + 'Invoke-M365DSCGraphShimGetResource' + ' failed: ' + $_.Exception.Message) throw } } |