Created
April 17, 2014 04:11
-
-
Save klumsy/10952291 to your computer and use it in GitHub Desktop.
Using TypeScript in PowerShell with PowerShell.JS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ipmo PowerShellJS -Force | |
$null = New-JSSession -Name test | |
Invoke-TypeScript -name test -script "1+1" | |
Invoke-TypeScript -name test -script "var adder = x => x * x" -NoResults | |
Invoke-JS -name test -Script "adder(5)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
using PowerShellJS - https://github.com/klumsy/PowerShellJS