Running Streamlit while logged out of local server

Hello, I would like to first state that I am extremely new to Streamlit so please bare with me if I ask this question in an odd fashion. I am using Streamlit Ver. 1.41.1, Python Ver. 3.12.7 and everything is installed via Anaconda.

Here is my issue. I have a python script that runs via streamlit, so I open CMD streamlit run script.py and then I access it via a browser. I do this from Windows server 2019 and the issue is that when I log out, the script dies as you would expect so I am unable to access the site. I have tried to get it to run with NSSM and Task Sch but no luck. Is there a way that I can run this without being logged into the server?