magic wand
▸ noun a rod used in casting magic spells or performing conjuring tricks:
with a swish of her magic wand, the Fairy Godmother transforms Cinderella.
▪ used in reference to the finding of a simple solution to an difficult problem:
you can't simply wave a magic wand and produce a few million more jobs just like that
the funding we have been allocated will not act as a magic wand.