Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 1.45 KB

README.md

File metadata and controls

59 lines (37 loc) · 1.45 KB

Use-Module

PowerShell

Check for, and if required, install and/or import specified module(s) for use.


DESCRIPTION

If modules are already installed and imported, no action is taken.
If modules are already installed but not imported, they are simply imported for use.

Note: Modules are installed and imported using the currentuser/local scope.

Supports specifying multiple module names via parameter or pipeline input.
Multiple module names specified by parameter should be comma separated.
If module names contains spaces, the name should be wrapped in quotes (e.g "Module Name").

NOTES

Author : Patrick Cage ([email protected])
Version : 1.0.0 (2022-09-28)
License : GNU General Public License (GPL) v3

PARAMETER ModuleName

<string[]> The name(s) of module(s) to be installed and/or imported for use.

EXAMPLE

Use-Module "Module One"

EXAMPLE

Use-Module -ModuleName "Module One"

EXAMPLE

Use-Module "Module One", "Mondule Two", "Module Three"

EXAMPLE

Use-Module -ModuleName "Module One", "Module Two", "Module Three"

LINKS

Website : https://www.patrickcage.com/use-module


If this has helped you, consider buying me a coffee