The way Jester defeated goes in Yuna and Dusty.
Princess Cadance: Wait! Where's the Jester?
The Jester: They won't get me now!
Princess Yuna: Hold it right there, Jester!
Dusty Crophopper: You're not going anywhere!
Princess Skyla: It's all over for you!
Elsa: You've cost too much trouble!
Finn McMissile: We have you completely surrounded
The Jester: What're you going to do with us?
Blade Ranger: You'll see, Jester!
Hiro: For threatening our daughter, Princess Yuna and All in Equestria!
Princess Luna: We hear by banish you to Tartarus. (opening the gateway to Tartarus) So that never again will you try to harm anyone or anypony ever!
Princess Yuna: Say bye-bye, Jester!
The Jester: Noooooooooooo!!!!!!!
Toby: So long, Jester!
Sarousch: No, You can't do this!
Discord: Oh yeah. Prove it, Sarousch.
Roary: There's no where else for you to run!
Theodore Tugboat: Come on, team. Let's beat him up.
Percy: Watch your own Dad's work, Daffodil!
Daffodil: You go, Daddy!
Wubbzy: Right, Theodore!
Blossom: You got it!
Mr. Winkie: Uh-oh.
Mr. Winkie: Ow!
Plankton: Well, That takes care of them.
SpongeBob SquarePants: You said it, Plankton!
Patrick Star: And for Meowrice and his Henchcats!
Squidward Tentacles: And Stan and Heff!
Sandy Cheeks: And Lobster Mobster and Da Shrimp!
Mr. Krabs: And Ozzy and Strut!
Dog: We forgot Flim and Flam!
Flim: Oh. Uh...
Flam: We surrender!
Cat: It's off to jail for you guys!
Flim: Please, Let us explain!
Radar: Tell it to the Judge!
Tillie: Bye, Flim Flam Brothers!
So, The villains were taken to Jail.