Use the service wrapper PMS as a service
or nssm.exe instead.
Or use the task scheduler, if you need hardware transcoding.