Command Line: Process dies after restart

Hi! im using a command line switch and start a script with it. unfortunately it dies after I restart home assistant core from UI.

starting with: bash command.sh &
and then tried bash nohup command.sh & and bash command.sh & disown but it dies after restarts also.

how can I fix this?

is there any solution at all for this case?
To disconnect a program / a process from HA.

I have some ffmpeg tasks and some scripts ( camera monitoring system ) which should continue to run even if HA has to be restarted or crashes.

the command line / shell integration is very frustrating.
I moved 90/129 rules from my 6 years built home automation (pimatic) to HA and all the shell stuff takes the most time.