ScriptBlock and SessionState in PowerShell
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:
...
mdgrs.hashnode.dev6 min read
Justin Grote
Grand Council Order of Yak Shavers
Excellent and insightful article! Well done!