Skip to content

Instantly share code, notes, and snippets.

@PrateekKumarSingh
Last active December 18, 2018 11:15
Show Gist options
  • Save PrateekKumarSingh/3e4c897e7511fba298e3f2d7ff7916bb to your computer and use it in GitHub Desktop.
Save PrateekKumarSingh/3e4c897e7511fba298e3f2d7ff7916bb to your computer and use it in GitHub Desktop.
[ScriptBlock].FullName # full name of the class
# creating the script block then invokig it
[ScriptBlock]::create('$args[0]*2').invoke(2)
[ScriptBlock]::create('$args[0]*2').invoke(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment