code: func performServiceCommand(command string) error {
  	var err error
  	switch command {
  	case "install":
  		err = installService()
  
  	case "remove":
  		err = removeService()
  
  	case "start":
  		err = startService()
  
  	case "stop":
  		err = controlService(svc.Stop, svc.Stopped)
  
  	default:
  		err = fmt.Errorf("invalid service command [%s]", command)
  	}
  
  	return err
  }
docs: // performServiceCommand attempts to run one of the supported service commands
  // provided on the command line via the service command flag.  An appropriate
  // error is returned if an invalid command is specified.