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