internal/scriptblocks/scriptblocks.ps1
<#
Stored scriptblocks are available in [PsfValidateScript()] attributes. This makes it easier to centrally provide the same scriptblock multiple times, without having to maintain it in separate locations. It also prevents lengthy validation scriptblocks from making your parameter block hard to read. Set-PSFScriptblock -Name 'ADObjectHealthScan.ScriptBlockName' -Scriptblock { } #> |