/cast [@NAME-pet] Spell
I read this on a forum, using the syntax:
/cast [target=NAME-pet] Spell
But I'd assume mine would work fine as well. Just replace NAME with the player's name, and it should do the trick. Servers are down so I can't test, lemme know if you have problems.