The telescope itself is "scriptable" using a (truly ancient) version of JS via a really old implementation that I've seen referenced but can't find right now. There's a lot of open information about the JWST, but it's not widely reported on. Definitely worth checking out if you're interested in space, technology, and the systems we actually deploy into the void!
Some papers: http://www.stsci.edu/~idash/pub/dashevsky0607rcsgso.pdf