Skip to content

Instantly share code, notes, and snippets.

@ckolumbus
Forked from hanna-cirilla/Import-LocalModule.ps1
Created March 16, 2020 14:06
Show Gist options
  • Select an option

  • Save ckolumbus/1b23eb78619cba47dab4fc773808b591 to your computer and use it in GitHub Desktop.

Select an option

Save ckolumbus/1b23eb78619cba47dab4fc773808b591 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