Looking for a macro (stop wand)

Hello all. I am looking for a macro that “cancel” the Shoot (wand) and cast a spell. The reason is that while wanding and trying to cast a spell, I usually need to spam the spell a lot to get it to cast…

I tried /stopcasting but does not work… is there any command like /cancelshoot or /canceltoggle etc