Repeats a given command