What is SC?
SC Communicates with the Service Controller and installed services. SC.exe retrieves and sets control information about services. You can use SC.exe for testing and debugging service programs. Service properties stored in the registry can be set to control how service applications are started at boot time and run as background processes. SC.exe parameters can configure a specific service, retrieve the current status of a service, as well as stop and start a service. You can create batch files that call various SC.exe commands to automate the startup or shutdown sequence of services. SC.exe provides capabilities similar to Services in the Administrative Tools item in Control Panel.
To create Service from executable run below command,
C:\Program Files (x86)\Xerox\NetworkScan>sc create XeroxScan binpath="C:\Program
Note - must have quotation marks around the actual exe path.