def avail_modules(desc=False):
 cmd = u'Find-Module'
 modules = _pshell(cmd)
 names = []
 if desc:
  names = {}
 for module in modules:
  if desc:
   names[module[u'Name']] = module[u'Description']
   continue
  names.append(module[u'Name'])
 return names

def avail_modules ( desc = False ) : cmd = u'Find-Module' modules = _pshell ( cmd ) names = [ ] if desc : names = { } for module in modules : if desc : names [ module [ u'Name' ] ] = module [ u'Description' ] continue names . append ( module [ u'Name' ] ) return names
list available modules in registered powershell module repositories .