Need help with Hunter BM pets macro

Hello, does anyone know a macro that works for Hunter BM pets that if said pet is summoned using its spell i had some like this

/use [pet:Spirit Beast,@mouseover,help,nodead][pet:Spirit Beast,@player]Spirit Mend;[pet:Spider]Web Spray;[pet:Aqiri]Ravage; [pet:Courser]Fleethoof;[pet:Hyena]Infected Bite; [pet:Stone Hound]Stone armor; [pet:Core Hound]Molten Hide

but i seem unable to use it correctly also wanted to add for more pets like Raptor , Birds of Prey, Foxes, Lesser dragonkin, etc , can someone help? please