How do I summon a projectile moving in the player's facing direction?

Specifically, I'm trying to summon an ender pearl as part of a datapack.

Continue to help post