Use different rules output syntax for scripts. Now looks like:
rule "rule-name"
  when
    blah and
    not blah
  then
    blah
    blah
end