how to evaluate a script