PowerShell scope write-up

I have seen and experienced myself quite some confusion and frustration around the application and understanding of scope using PowerShell. This is an attempt to write up a summary of the different aspects of how PowerShell handles scope which hopefully helps some people to understand it better. TOC: Definition and purpose of scope Lexical vs. […]