its very simple For cretion of a service from cmd , write these command in CMD
sc create MySystemCmdBox binPath= "C:\windows\system32\cmd.exe /k cmd" type= own type= interact error= ignore start= demand
Here MySystemCmdBox is service name
C:\windows\system32\cmd.exe = path of executable
For delete a service form CMD
sc delete MySystemCmdBox
then execute.
NOTE : you should open cmd with run as Administrator