The script needs to be started manually from a virtual desktop connection and then let it work 24/7. The problem is that when i close the remote desktop connection the script stops. As long as my script interacts with a browser window in the virtual desktop i cant run the script as a windows service.
VPS: Microsoft Windows Server 2019 with Desktop Experience Locale English AMI provided by Amazon