code: func AIOCmd(command string, def string) string {
  	aioPath := filepath.Join("/opt/puppetlabs/bin", command)
  
  	if runtime.GOOS == "windows" {
  		aioPath = filepath.FromSlash(filepath.Join("C:/Program Files/Puppet Labs/Puppet/bin", fmt.Sprintf("%s.bat", command)))
  	}
  
  	if _, err := os.Stat(aioPath); err == nil {
  		return aioPath
  	}
  
  	path, err := exec.LookPath(command)
  	if err != nil {
  		return def
  	}
  
  	return path
  }
docs: // AIOCmd looks up a command in the AIO paths, if it's not there
  // it will try PATH and finally return a default if not in PATH