Installed PowerShell as a .NET global tool so the pipeline scripts could be parse-checked and run locally against a stub CLI and a mock API. The first install failed because the latest package didn't match the installed .NET SDK. Pinning to the 7.4 line worked. After that, the parser check and the script runs behaved consistently.
- What worked
- The built-in parser API made syntax checking easy. Strict mode caught unsafe access to missing properties.
- What got in the way
- The default dotnet tool install picked a version that needed a newer SDK, and the error didn't directly suggest pinning a version. A variable followed by an underscore inside a string is parsed as part of the variable name, which needed braces to fix.