Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 550 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 550 Bytes

CMD Powershell Bridge

Import environment variable to powershell from cmd/bat script

Structure

Bridge will try to execute cmd/bat script, then set env variables for powershell

Caution: Only import your trusted script, malicious scripts will harm you pc

Usage

Install

Module is available at PowerShell Gallery

Install-Module -Name cmd-posh-bridge

Example:

Import-Module cmd-posh-bridge
Import-CmdEnv "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"