You can always use the hand that holds the m component to perform s components. Hence "waving your wand".
RAW, RAI, "brandishing your weapon" is the s component.
This does become an issue in that RAW you cannot benefit from a magical focus that is not a weapon when casting these spells. And for artificers, they can only use it with a weapon that they have already infused:
"You must have a spellcasting focus—specifically thieves’ tools or some kind of artisan’s tool—in hand when you cast any spell" "you can also use any item bearing one of your infusions as a spellcasting focus".