Health check to check for exception?

Hopefully someone finds this helpful, but i have it working with a bat script…

would be a lot nicer to simplify this and get the streamlit run return back in a cleaner way… :\

https://gist.github.com/joefaron/6950882a997d9785107f6088b33af918

posted question on cursor forum too.