Implements async.times for calling exec().