Do you know the difference between these two ScriptBlocks? One is directly defined in a script, and the other is created from a string. $sb1 = {$var} $sb2 = [ScriptBlock]::Create('$var') The difference I talk about here can be described like this: ...

Markdown supported · ⌘↵ to post
mdgrs
Justin Grote
Grand Council Order of Yak Shavers
Excellent and insightful article! Well done!