If a stationary target is moving then so is the shooter.
Scotty : That’s what I’m talking about! How do you think I wound up here? Had a little debate with my instructor on relativistic physics and how it pertains to subspace travel. He seemed to think that the range of transporting something like a... like a grapefruit was limited to about 100 miles. I told him that I could not only beam a grapefruit from one planet to the adjacent planet in the same system - which is easy, by the way - I could do it with a life form. So, I tested it out on Admiral Archer’s prized beagle.
James T. Kirk : Wait, I know that dog. What happened to it?
Scotty : I’ll tell you when it reappears. Ahem. I don’t know, I do feel guilty about that.
Scotty : Except, the thing is, even if I believed you, right, where you’re from, what I’ve done - which I don’t, by the way - you’re still talking about beaming aboard the Enterprise while she’s traveling faster than light, without a proper receiving pad.
Scotty : [to Keenser] Get off there! It’s not a climbing frame!
Scotty : [back to Spock Prime] The notion of transwarp beaming is like trying to hit a bullet with a smaller bullet whilst wearing a blindfold, riding a horse.
[Spock writes on a paper]
Scotty : What’s that?
Spock Prime : Your equation for achieving transwarp beaming.
Scotty : [to himself] He’s out of it
Scotty : [reads the equation] Imagine that! It never occurred to me to think of SPACE as the thing that was moving!
Interesting parallel, don’t you think?
Hmmm ... space moves? Stuff in it does like if you’re trying to shoot antelope on the moon from your front porch.