226 B
226 B
Lessons
2026-02-24
- PowerShell 5.1 compatibility: do not use
$PSScriptRoot(or other script-location variables) insideparam()default expressions. Resolve script-relative defaults after theparamblock instead.