Public/Graph/Invoke-KritTcmGraphShimRequest.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper Invoke-M365DSCGraphShimRequest (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-M365DSCGraphShimRequest Category: Graph Module: M365DSCGraphShim Params: 6 #> function Invoke-KritTcmGraphShimRequest { [CmdletBinding()] param( [Parameter(Mandatory)] [String] $Method, [Parameter(Mandatory)] [String] $Uri, [Object] $Body, [IDictionary] $Headers, [String] $OutputType, [SwitchParameter] $PassThru ) if (-not (Get-Command -Name 'Invoke-M365DSCGraphShimRequest' -ErrorAction SilentlyContinue)) { throw '[KritTcm] Invoke-M365DSCGraphShimRequest not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Invoke-M365DSCGraphShimRequest' @PSBoundParameters } catch { Write-Error ('[KritTcm/Invoke-KritTcmGraphShimRequest] ' + 'Invoke-M365DSCGraphShimRequest' + ' failed: ' + $_.Exception.Message) throw } } |