Skip to content

Instantly share code, notes, and snippets.

@brettmillerb
Created October 29, 2018 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brettmillerb/5a55b8bb604327fccd55cf53b0b3bc2b to your computer and use it in GitHub Desktop.
Save brettmillerb/5a55b8bb604327fccd55cf53b0b3bc2b to your computer and use it in GitHub Desktop.
function Enter-PSCmdletContext { [CmdletBinding()]param() $Host.EnterNestedPrompt() },
Enter-PSCmdletContext
$PSCmdlet
$TAType = [psobject].Assembly.GetType("System.Management.Automation.TypeAccelerators")
$TAType::Add('accelerators',$TAType)
# this now works
[accelerators]::Add()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment