PowerShell

Added some PowerShell snip-its.
Fixed one snippet

The C# snippet for getting the running applications directory was
missing a ")" at the end of it.