Unless you know another way to activate the mount effects:
No, as triggering the mount effect is by presing a key, and that must not be done by addons -> would open ways to create botting.
Rear up is "jumping while not moving on a mount." And jumping is something add-ons are not allowed to do and will not be allowed to do, as Baertram explained.