Frankfurt Horizontal Plane alignment of one model, angle measurements

We use this tutorial as an example of scripting in Slicer. It uses three points to define the Frankfort, but it should be trivial to adjust it to use your four points: