This is how Unleash the Magic and Defeating Midnight Sparkle goes in The Great Equestria Girls: Friendship Games Adventure.
[Spike cowers as Principle Cinch backs away and Roodaka grins evilly]
Midnight Sparkle: [evil laughter, to Umarak] You were right! I didn't understand magic before! But I do now!
[Midnight Sparkle uses her magic to opens several rifts to Equestria]
Umarak the Hunter: Equestria.
[Midnight Sparkle aims a beam of magic at him. Umarak jumps out of the way and another portal opens]
Umarak the Hunter: Twilight, you can't do this!
Midnight Sparkle: Why not?! There's a whole other world right there, and it's just filled with magic!
[Midnight Sparkle opens another portal]
Umarak the Hunter: But you're destroying this world to get it!
Midnight Sparkle: So what? There's more magic there, and I want to understand it all!
[Midnight Sparkle raises her hands above her hand and shoots magic at the ground, opening up a gigantic portal to Equestria]
[Umarak stares on in shock and horror then notices Sci-Twi's amulet then smirks]
[Students start beginning pulled into the vortex]
[Umarak thinks and looks at the device and has an idea]
Umarak the Hunter: This isn't the way! I know you feel powerful right now, like you can have everything you want! I've been where you are, I've made the same mistake you're making! I put on a crown and, just like you, I was overwhelmed by the magic it contained! I thought it could get me everything I wanted!
Midnight Sparkle: Oh, you're wrong. Unlike you, I can have everything I want!
Umarak the Hunter: No, you can't. Even with all that magic and power, you'll still be alone! True magic comes from Honesty!
[Applejack glows and her hair flies up]
Umarak the Hunter: Loyalty!
[Rainbow Dash's hair flies up]
Umarak the Hunter: Laughter!
[Pinkie Pie's hair flies up]
Umarak the Hunter: Generosity!
[Rarity's hair flies up]
Umarak the Hunter: Kindness!
[Fluttershy's hair flies up]
Umarak the Hunter: I understand you, Twilight, and I want to show you the most important magic of all...
[Umarak sucks the magic into the device and smashes it on the ground and turns into an alter-ego of his own: Daydream Umarak]
Daydream Umarak:... the Magic of Friendship.