Skip to content

Instantly share code, notes, and snippets.

@mamidenn
Created March 16, 2020 10:25
Show Gist options
  • Save mamidenn/5d0ed416b7f8a2ccbfa5e2a0fdd5f497 to your computer and use it in GitHub Desktop.
Save mamidenn/5d0ed416b7f8a2ccbfa5e2a0fdd5f497 to your computer and use it in GitHub Desktop.
Import PowerShell module without polluting environment
$name = psake
Save-Module -Name $name -Path .
Import-Module -Name .\$name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment