When do you use Command pattern?

Technical