xxxxxxxxxx
SC CREATE <Service Name> binPath= "D:\Mahesh\MaheshProjects\Project\Mahesh.O365ActiveDirectory.ServiceHost\bin\Debug\Mahesh.O365ActiveDirectory.ServiceHost.exe"
xxxxxxxxxx
sc.exe \\myserver create NewService binpath= c:\windows\system32\NewServ.exe