Manipulating Shulker Bullet

Hi! I would like to set two things to Shulker Bullet: target and potion effect on hit entity.
Any ideas how can I make it?