Move node onto handle?

In a variable font, I’m trying to move a collection of single-handle nodes such that the nodes sit on top of their handles (handles then having zero length) at a certain axis value. Has anyone had scripting experience with moving nodes while keeping handles stationary?

You can move the node without is handle by holding the Option key.

But you need to understand that currently, variable fonts use TrueType curves. And converting curves that have zero length handles to TrueType can lead to unexpected results.