I was dead wrong (Restore the Elements of Magic)
If you pause after collecting the last shards, exit the level, and then enter the next level, which is unlocked in Fresh Files run, the game thinks that you actually completed the next level, instead of the one where you do perform the glitch.
Do note that the timing is precise. Too early, you didn't get the glitch. Too late, you cannot exit out of the next level even if you complete the level as the menu is disabled by the glitch. This softlock doesn't matter on Pinkie's stage, the last stage, since it is the end of the run.
Other Videos By GhostHNW
Other Statistics
My Little Pony: Friendship Is Magic Statistics For GhostHNW
At present, GhostHNW has 24,860 views spread across 31 videos for My Little Pony: Friendship Is Magic, and close to 3 hours worth of content for My Little Pony: Friendship Is Magic published on his channel. This is 25.24% of the total watchable video on GhostHNW's YouTube channel.