Amazingly, it's not possible out of the box to set a component to start as a service!
Basic advice of Oracle is to use taskscheduler with a script including a wait... ...no comment.
Personnaly, I always use nssm to bypass this issue (https://nssm.cc/ ). But if you don't mind "not that pretty tricks", of course task scheduler will do the job (or the task we should say)
Some room for improvement here...