An open API service indexing awesome lists of open source software.

https://github.com/pkgstore/pwsh-install

Module for installing third-party modules from GitHub.
https://github.com/pkgstore/pwsh-install

powershell powershell-cmdlets powershell-module powershell-modules powershell-script powershell-scripts pwsh pwsh-module pwsh-scripts windows

Last synced: about 1 month ago
JSON representation

Module for installing third-party modules from GitHub.

Awesome Lists containing this project

README

          

# PowerShell Install Module

Module for installing third-party modules from GitHub.

## Install

```powershell
$MOD = "Install"; $PFX = "PkgStore"; $DIR = "$(($Env:PSModulePath -split ';')[0])"; Invoke-WebRequest "https://github.com/pkgstore/pwsh-${MOD}/archive/refs/heads/main.zip" -OutFile (Join-Path $DIR "${MOD}.zip"); Expand-Archive -Path (Join-Path $DIR "${MOD}.zip") -DestinationPath "${DIR}"; if (Test-Path -Path (Join-Path $DIR "${PFX}.${MOD}")) { Remove-Item -Path (Join-Path $DIR "${PFX}.${MOD}") -Recurse -Force }; Rename-Item -Path (Join-Path $DIR "pwsh-${MOD}-main") -NewName (Join-Path $DIR "${PFX}.${MOD}"); Remove-Item -Path (Join-Path $DIR "${MOD}.zip");
```