How can I smoothly change a cinemachine camera's target through script?

I’m working on a 2d game and I need to be able to pan the camera to a transform to bring attention to it.
Is there any code that will allow me to do this?

It’s better to blend to another vcam with that as the target. This way, you not only get a smooth blend but you can make any other camera changes you’d like - FOV, position - anything - and they will smoothly blend along too.

CM is meant to blend between lots of vcams, not make one camera which tries to do everything.