Each script, foreach task's ids run task2