What library/program can draw molecules in 3D programmatically? Molecular graphics software is usually interactive.

But I am looking for a library or program that would be able to render a given molecule based on the commands from another program. I would like to give it a molecule description, the vantage point, options, etc, and it should produce the picture without opening any windows.

The input is the same data as contained in an XYZ file (or the file itself), the expected output is a 3D molecule drawing.

What is the easiest way to do this?
The "jmoldata" command (using JmolData.jar from Jmol) converts xyz/pdb and many other molecule formats to nicely rendered 3D images based on the user-provided Jmol scripts.

(answer based on the hint from the user @porphyrin)