PowerShell Variables: Scope, Types, and Best Practices
Last month we inherited a 3,000-line PowerShell deployment script from a manufacturing client. The thing was riddled with global variables bleeding into functions, type mismatches crashing midnight runs, and zero…
