automate test running with script