Get running tasks / apps in background

Hello friends! a question… I need to check the background running tasks to see, in a period basis (i.e. once a minute), if a particular background task (i.e. Whatsapp) goes killed by the OS, and relaunch it.

So I need to know if any extension can give that list, to launch the app via intent, if needed.
Just that.

I tryed witth shell component and extension and with the PS -e Linux CLI command, but got listed only my app, no all the background process.

I guess that could be done without being SU, just because there are multiple apps (no root) that lists process and let me kill them.

Any idea ?? Extension or component, of course
Thanks