About the Author Brien Posey is a 22-time Microsoft MVP with decades of IT experience. As a freelance writer, Posey has written thousands of articles and contributed to several dozen books on a wide ...
Have you ever noticed that if you include a variable within a PowerShell Write-Host statement, that variable is evaluated, even if you include the reference to the variable within the quotation marks?
The scriptblock is a unique type of construct in PowerShell that allows developers to "compartmentalize" executable code and use it in various places. Lots of programming languages have a concept of ...