Skip to content

Instantly share code, notes, and snippets.

@klumsy
Created April 17, 2014 04:11
Show Gist options
  • Save klumsy/10952291 to your computer and use it in GitHub Desktop.
Save klumsy/10952291 to your computer and use it in GitHub Desktop.
Using TypeScript in PowerShell with PowerShell.JS
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)"
@klumsy
Copy link
Author

klumsy commented Apr 17, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment