enhance script task, make append the file option