Didn't really sort all that out, but make a macro like this:

/cast Shadow Bolt
/petfollow