Unexpected token '?' in expression or statement
What causes it and how to fix it:
- A syntax check under PowerShell 7 proves nothing about 5.1The parser belongs to the engine hosting it; ternary/??/&& pass in 7 and are parse errors in 5.1, and #Requires never warns you at authoring timeCause and fix →