Start a transient service that does not get cleaned up after it terminates with a custom environment variable
sudo systemd-run --remain-after-exit --set-env={{name}}={{value}} {{command}} {{argument1 argument2 ...}}