Did you know that you can access most of the Cmdlet base class APIs through script using the $executioncontext variable?

-Jeff Jones