For tasks that are done often or rarely it can be useful to wrap up some quirky or verbose commands into shorter custom functions that are easier to remember.
- Download the folder and place it in your own module folder.
$env:PSModulePath.split(';')
will show you these locations. - Ensure that folder is named
Helper
Because the module is in your known path, powershell can find the commands by name to automatically import as you type them.
- When needed, import the module with
Import-module <PathToFolder>\helper.psd1
get-command -module helper
will show you the commands from this moduleget-help <command name>
will print the help of a command you are interested in.get-help <command name> -examples
will display how you can use a commandget-help <command name> -full
you will find everything there is to know.get-help about_helper
will show you the module general help file