From Bulbapedia, the community-driven Pokémon encyclopedia.
Two machines, invented by Giovanni, made their appearances in Mewtwo Returns.
One is red, while the other is gray. They are meant to turn Mewtwo into Giovanni's puppet, each using an energy orb as a weapon. The first time Mewtwo is encountered by them, it is able to knock them away with its Psychic powers. However, they are not destroyed; instead the machines create an energy orb that Mewtwo is forced to walk into.
Once inside, Giovanni threatens to destroy all the cloned Pokémon. However, even though Mewtwo's can no longer control its own body, its mind is not truly controlled by Giovanni. Seeing this, Giovanni then realizes that Mewtwo's body will be destroyed but decides to keep Mewtwo within the orb to determine who's will is stronger.
Ash and company arrive and attempt to deactivate the machines. Even with the help of Pikachu, Meowth and the clones, they are unable to be destroyed. Mewtwo, using the last of its strength, finally destroys both machines.