If you want an easier way, buy a SuperPID speed controller. It'll turn the Dremel on/off, and provide variable speed controllable by Mach3.
You'd just create buttons that send g-code.
Sending combinations of M3, M5, and S*********x will give you full control of the Dremel.
www.superpid.com