wave a wand
wave a/(one's) (magic) wand (and do something)
To provide the perfect solution to a given problem or difficulty, as if by magic. If I could wave my magic wand, I would just make it so the pipe had been installed properly in the first place. But I can't, so we're going to have to make a decision about how to fix it. We can't just wave a magic wand and make poverty go away. It will have to be a systematic effort by many stakeholders.
wave a (magic) ˈwand (and do something)find a quick and easy way of doing something that is very difficult or impossible; do something as if by magic: I’m sorry, but I can’t just wave a magic wand and solve your problems. ♢ If you could wave a wand, what sort of apartment would you really like?
A wand is a straight thin stick that is held by a person who is performing magic.