Madame X is a
Officer Jenny (Kalos) under mind control by the hands of Malamar. Under that influence she takes over
Ash's Pikachu along with the Team Rocket duo,
Meowth however escaped. Throughout the episode it is revealed that more Pokémon were being controlled and followed her instructions of along with Citron, Eureka, and Serena.