Search the Votifier Listener Forum. There is a listener I've used, WerrisExecuteCommand or something like that, and it does exactly what you need.