It seems you want to launch a Streamlit app from another script file.
Here’s a simple solution that you can implement by creating a script.py file:
import subprocess
process = subprocess.Popen(["streamlit", "run", 'streamlit_app.py'])
Then in the command line, you can run python script.py and that should launch your Streamlit app. You can also insert os.path.join() into the input argument if your app file is not in the same folder.