Skip to content

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

License

Notifications You must be signed in to change notification settings

C493/Use-Module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published