Script Block
say it: “skript BLOK” /ˌskrɪpt blɒk/
Code in `{ }` that can be stored and run later.
What is Script Block?
A script block is a chunk of code in curly braces { } that can be stored and run later. Where-Object and ForEach-Object take script blocks.
$greet = { param($name) "Hi, $name" }
& $greet 'Maria'
Level: Journeyman · More PowerShell terms at this level
Updated