Public/Export/Add-KriticalUtcmExportDependsOn.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Add-M365DSCExportDependsOn (category: Export, module: M365DSCExportUtil). .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: Export Module: M365DSCExportUtil Params: 1 #> function Add-KriticalUtcmExportDependsOn { [CmdletBinding()] param( [Parameter(Mandatory)] [String] $DSCContent ) if (-not (Get-Command -Name 'Add-M365DSCExportDependsOn' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Add-M365DSCExportDependsOn not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Add-M365DSCExportDependsOn' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Add-KriticalUtcmExportDependsOn] ' + 'Add-M365DSCExportDependsOn' + ' failed: ' + $_.Exception.Message) throw } } |