As "https://sourceforge.net/p/refind/discussion/general/thread/05965d36c2/#d8df" partially describes, I am attempting to programmatically invoke Startup Manager at subsequent boot, and ideally reboot immediately subsequently. This is similar to what "http://github.com/OpenRC/openrc/issues/539#issue-1324331600" describes performs, but ideally I'd like a way to be able to set macOS to invoke the Startup Manager without needing to force a reboot immediately, because I can always invoke manually reinitialize the device by invoking “reboot”, obviously.
I, as is true for most, am unable to observe the macOS source-code, so I obviously am unable to emulate how macOS performs this. However, I am additionally unable to locate any relevant documentation.
I am thankful for any assistance.