How do I make a Windows screensaver in Godot?

Godot Version

Godot 4

Question

On Windows, screensavers are just renamed executables (scr extension instead of exe). That’s the easy part. However, these screensavers need to parse certain command line arguments to work correctly and this is where I hit the brick wall with trying to make one in Godot. As opposed to other engines, Godot is perfect for making cool 3d screensavers since the exports are a single file (unless you used some external libraries/specialized addons), so it would be nice to know how to make a screensaver work in Godot. Or maybe there is a screensaver export template?

Does this help?

Reading commandline is the easiest part. Actually doing what Windows expects to be done after giving the screensaver specific command arguments is the difficult part.