If you enjoyed this video, be sure to head over to to get free access to our entire library of content! Scriptblocks are a ubiquitous type of construct in PowerShell. In this video, we're going to cover everything from creating scriptblocks, executing scriptblocks with the call operator, using Invoke-Command to run scriptblocks and even going over some things you need to look out for around variable scoping. Head over to now for hundreds of in-depth, informative how-to articles just like this!











