I simply use:
/run UsePetAction(6)
This, with the auto attacks on, will keep the centaur at its current location and continuing to fire centaur arrow and valiant shot. I use 6 instead of 7 as I dont have to worry about if the valiant shot cd is ready.
If I want the centaur to move to target, I simply click its attack, or use ctrl+3.