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