re-format validate.script so that it runs in script runner.