docs: def install(name, minimum_version=None, required_version=None, scope=None,
              repository=None):
      '''
      Install a Powershell module from powershell gallery on the system.
  
      :param name: Name of a Powershell module
      :type  name: ``str``
  
      :param minimum_version: The maximum version to install, e.g. 1.23.2
      :type  minimum_version: ``str``
  
      :param required_version: Install a specific version
      :type  required_version: ``str``
  
      :param scope: The scope to install the module to, e.g. CurrentUser, Computer
      :type  scope: ``str``
  
      :param repository: The friendly name of a private repository, e.g. MyREpo
      :type  repository: ``str``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt 'win01' psget.install PowerPlan
      '''
      # Putting quotes around the parameter protects against command injection
      flags = [('Name', name)]
  
      if minimum_version is not None:
          flags.append(('MinimumVersion', minimum_version))
      if required_version is not None:
          flags.append(('RequiredVersion', required_version))
      if scope is not None:
          flags.append(('Scope', scope))
      if repository is not None:
          flags.append(('Repository', repository))
      params = ''
      for flag, value in flags:
          params += '-{0} {1} '.format(flag, value)
      cmd = 'Install-Module {0} -Force'.format(params)
      _pshell(cmd)
      return name in list_modules()