Shoot at the nearest hostile mob

I have a item frame (a placeholder) at a certain block. Using @e[distance=..10,sort=nearest,limit=1] I can target the nearest mob. I have a tag with all hostile mobs. How would I spawn an arrow or such that flys to the nearest mob?

Continue to help post