create script file and call