Start and Stop Streamlit app in background in Windows

I have a simple batch file that starts my streamlit app. This batch is run by task scheduler (cron equivalent). When my app acts up, I do not know how to stop it because it is in the background, so no terminal windows available for Ctrl-C.

  1. Is there a command to stop streamlit running in the background?
  2. Is there a better way to start and stop streamlit in the background in a windows server?