This is a sample command line for adding an SVN server, but you should be able to re-use these options to create anything you need:
C:\svn\repository>sc create svnserver binpath= "c:\svn\bin\svnserve.exe --service -r c:\svn\repository" displayname= "Subversion" depend= Tcpip start= auto [SC] CreateService SUCCESS
scservicesvnwindows