added convenience method that wraps up all the plumbing that is needed to execute a script statemnt. It returns the result.