My script get’s the recovery volume from the volume name, mounts it, asks which version to patch, patches the kernel on that version, patches the support on all versions.
Mine just ask for a password to being executed then doesn't ask nothing more and makes APFS Recovery bootable, I've tried also using an external USB APFS Mojave installation and it appears to work, since /Volumes/Recovery/*/ is a generic common mount point for every APFS device.
Of course my script should be used from a booted current Mojave since inherits its "working-patched" prelinkedkernel, so it's an after-fix I'd say not a pre-fix.