This is strange ,do not understand why you can run it ok but when I run it I get:
3/10/2023 11:52:52 AM: Building project step 2 - Run Test PowerShell script-with parameters...
C:\Windows\System32\WindowsPowerShell\v1.0\powersh ell.exe -nologo -noninteractive -executionpolicy Unrestricted "& 'C:\Program Files\VisBuildPro9\Test.ps1' Test1 ''Test{2[]??''"
Missing closing '}' in statement block or type definition.
+ CategoryInfo : ParserError: (
[], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingEndCurlyBrace
The second parameter in Input window is:
'[vbld_EscapeString(vbld_AllMacros()("MyParam2"))]'
Maybe I have some options activated you do not have?
Or maybe could you please try to run in in VBP 9.7 (same version as me )?