OfflineInstallation.ps1
$PSModulePath = "$HOME\Documents\WindowsPowerShell\Modules" $Files = Get-ChildItem -Path ".\" -Include ("*.psm1","*.psd1") -recurse $NewModulePath = $PSModulePath+"\$($Files[0].Directory.Name)" if (!(Test-Path -Path "$PSModulePath")){ New-Item -Path $NewModulePath -ItemType Directory -Force } $Files | Copy-Item -Destination $NewModulePath -Force -Confirm:$false |