Public/Intune/Find-KritTcmGraphDataUsingComplexFunctions.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper Find-GraphDataUsingComplexFunctions (category: Intune, module: M365DSCIntuneUtil). .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: Find-GraphDataUsingComplexFunctions Category: Intune Module: M365DSCIntuneUtil Params: 2 #> function Find-KritTcmGraphDataUsingComplexFunctions { [CmdletBinding()] param( [Array] $Policies, [Array] $ComplexFunctions ) if (-not (Get-Command -Name 'Find-GraphDataUsingComplexFunctions' -ErrorAction SilentlyContinue)) { throw '[KritTcm] Find-GraphDataUsingComplexFunctions not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Find-GraphDataUsingComplexFunctions' @PSBoundParameters } catch { Write-Error ('[KritTcm/Find-KritTcmGraphDataUsingComplexFunctions] ' + 'Find-GraphDataUsingComplexFunctions' + ' failed: ' + $_.Exception.Message) throw } } |