scripting: add function to evaluate script from string