def update(name, maximum_version=None, required_version=None):
    # Putting quotes around the parameter protects against command injection
    flags = [('Name', name)]

    if maximum_version is not None:
        flags.append(('MaximumVersion', maximum_version))
    if required_version is not None:
        flags.append(('RequiredVersion', required_version))

    params = ''
    for flag, value in flags:
        params += '-{0} {1} '.format(flag, value)
    cmd = 'Update-Module {0} -Force'.format(params)
    _pshell(cmd)
    return name in list_modules()
Returns queryset of :model:`Project` instances available for given
dataset/ETHPy150Open saltstack/salt/salt/modules/win_psget.py/update--crossover with--dataset/ETHPy150Open lukaszb/django-projector/projector/managers.py/ProjectManager.for_user