Swi prolog as service in windows and windows server

dear swi prolog forum,

i have created a server-program with swi prolog. now I would like to deploy the server to the windows server machine.
now i have been trying to create a windows service for auto starting swi prolog at system reboot.

swi prolog should then be started at system boot with 1 parameter .pl file so that it runs the server start script and functions
is there a good way to do this.

i managed to create a new service pointing to swipl.exe


sc create swi4server “c:\swipl64\bin\swipl.exe”

but when i try to start the service it says: fout: 1053

de service heeft de start opdracht niet op juiste wijze beantwoord