docs: def register_repository(name, location, installation_policy=None):
      '''
      Register a PSGet repository on the local machine
  
      :param name: The name for the repository
      :type  name: ``str``
  
      :param location: The URI for the repository
      :type  location: ``str``
  
      :param installation_policy: The installation policy
          for packages, e.g. Trusted, Untrusted
      :type  installation_policy: ``str``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt 'win01' psget.register_repository MyRepo https://myrepo.mycompany.com/packages
      '''
      # Putting quotes around the parameter protects against command injection
      flags = [('Name', name)]
  
      flags.append(('SourceLocation', location))
      if installation_policy is not None:
          flags.append(('InstallationPolicy', installation_policy))
  
      params = ''
      for flag, value in flags:
          params += '-{0} {1} '.format(flag, value)
      cmd = 'Register-PSRepository {0}'.format(params)
      no_ret = _pshell(cmd)
      return name not in list_modules()