PowerShell Cheat Sheet

Abstract Syntax Tree

Determine the arguments specified for a CommandAst using the PseudoParameterBinder. Proxy command isn’t necessary if you have the command available on your system.


Converts a hash table to a dictionary.


Proxy Command

Create a new proxy command from the specified command.


Set a string property to null.

Version 2

Set PSScriptRoot on PowerShell Version 2. PSScriptRoot is null in PowerShell v2 because it was not defined until PowerShell v3.