Script Block
Noun · Development
Definitions
In PowerShell, a block of code enclosed in curly braces that can be stored in a variable, passed as a parameter, or invoked later, functioning similarly to lambdas or closures in other languages.
In plain English: A chunk of PowerShell code wrapped in curly braces that you can save and run whenever you want, like a mini-function.
Example: "Pass a script block to ForEach-Object to transform each pipeline element."