How do I make a single joint within a skeleton look at an object?

I have a rigged lamp with a rotatable light part and I want to be able to rotate only the mesh attached to the joint that moves the light to a specific location (similar to a pole vector). I have tried to make this work with a socket and a construction script but for some reason the whole mesh rotates instead of only the mesh attached to the joint I want to select.

The reason for me wanting this is because I want to be able to fix several lights on a certain position and then bake them without having to do this by hand with each individual part.