Two ways of calling this: 1. with text representing group of topstatements (pfd == null) 2. with text representing a function name & body (pfd != null)
Execute program. Throw ScriptException on error.
See Implementation