From the Super Mario Wiki
Ads keep the MarioWiki independent and free :)
The Power Pendant is a pendant created by Kooky von Koopa that could bestow the ability to use Power-Ups to anyone, though only in the real world. Although Kooky was disappointed that the pendant did not work in the Mushroom Kingdom, Bowser actually expressed gladness, as it would be the reverse of the Mario Brothers powering up, since Luigi and Mario could not power up in the Real World.
In The Adventures of Super Mario Bros. 3 episode "Super Koopa", King Bowser Koopa uses the Power Pendant to cause havoc for Mario and Luigi, becoming Fire Koopa, Raccoon Koopa and Frog Koopa, along with being able to ride in a Karoobi's Shoe.
Eventually, the Power Pendant became too strained after being used several times consecutively by Bowser, and overloaded before exploding spectacularly.
How the Power Pendant works is relatively unknown, and why it only works in the real world is a mystery as well. Along with giving someone the ability to use Power-Ups, the Power Pendant could seemingly create them. By zapping an object with Power Pendant, a Power-Up would appear in it, similar to how Power-Ups are found inside Super Blocks; the exception to this appears to be the Karoobi's Shoes, as Bowser simply needed to zap a rather worn looking boot to transform it into a Karoobi's Shoe. Also, it seems that after the user has already used a Power-Up, they simply need to zap themselves to use that Power-Up again, instead of creating another Power-Up from scratch. The Power Pendant could also allow someone to use multiple Power-Ups at once, such as when Bowser became Fire Koopa and Raccoon Koopa at the same time.