See Apache Procrun - this details the exact usage.
Here is a quote from their page regarding installing a service:
Prunsrv is a service application for running applications as services.
It can convert any application (not just Java applications) to run as
a service.
Each command line directive is in the form of //XX[//ServiceName]
. If
the //ServiceName
parameter is omitted, then the service name is
assumed to be the name of the file. For example if the application is
renamed as TestService.exe, then the default service name is
TestService. The available command line options are:
//IS Install service
Starting with version 1.0.8 a more traditional command line can be
used in the form: command [ServiceName]
.