The Ponies In Black-There is no such thing as the Ministry of Ghosts.
There is no such Ministry in the Equestrian government run by Princess Twilight Sparkle, Princess Sunset Shimmer, and Princess Starlight Glimmer.
This Ministry-that does not exist-does not handles dangerous Precursor artifacts, magical devices that should not be used by anypony, and anything else that would be a direct threat to any intelligent being.
And, they are especially not behind you with a stun gun and a memory redactor.
Really. Honest.
Just don’t look behind you.