You need a power pump to drain Mordack's wand into yours.
The gizmo is upstairs in the laboratory.
Put both wands onto the trays. (You can't do it wrong.)
Now add the secret ingredient to get the machine going.