I don't see how this can be done minus something horrific. You either have to kill off almost the entire world's population, leaving a few survivors who adopt esperanto to communicate with each other. Or else you need some kind of totalitarian, revolutionary world state, the kind where the leader can get a whim like making everyone speak Esperanto and the whim is carried out no matter how bloody and stupid it is.