Executes a list of tasks for each array element.