create temporary script in working directory