Welcome to BigFix!
You could just use the PowerShell script type directly if you are on a recent version of BigFix. Otherwise, the curly-bracket is evaluated as a Relevance substitution; you need to escape the open-curly-bracket by doubling it as in
try {{
Do something
}
See Tip: Escaping curly brackets for substitutions in ActionScript for more examples