internal/scriptblocks/scriptblocks.ps1

1
2
3
4
5
6
7
8
9
10
11
12
<#
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 'AutomatedLabTest.ScriptBlockName' -Scriptblock {
    
}
#>