From the name I assume you built a GUI python script.
It is best to have a console script not a GUI script if your goal is to run it without a display.
Then you can turn your console script into a Windows Service.
A long long time ago I used pywin32 · PyPI to make a python script that was a Windows Service. You could check pywin32 docs and see if that is still a supported feature.