If fail to run/crash restart monitoring

Issue: sometime when running macros from CMD using task scheduler on windows 10 it fails to run and sits there doing nothing.

Is there a way to check if ui.vision is up and running a macro from command line?
or maybe a way to make the macro itself set a flag/log somewhere on the system and then I could create a cmd command to check if flag/log was set and at what time

with that info I could then restart the browser and macro if needed

The scripts here RPA/command-line at master · A9T9/RPA · GitHub including monitoring for browser timeouts/crashes. And they kill/restart Chrome if required.