Just carefully type all the commands into the buffer and they'll run consecutively while you sleep. It doesn't matter what order you copy the data, to answer your question.