How can I manually control the System Preferences > Accessibility > Zoom feature using some kind of scripting?

I would eventually like to make a keyboard shortcut to make the current focussed window fit-to-screen via zooming in on it, and centering that zoom on it.

2