https://www.google.com/search?q=systemd+add+units+programmat...
You can do it either via the CLI (systemd-run), or via the D-Bus API (StartTransientUnit).
SystemD has no dearth of programmable options.
I have tried available options including generators.
SystemD has no dearth of programmable options.