PowerShell functions updated.

* More traps
* Assign undesirable output to $null
* Reorganize some execution plans

Change-Id: Ifb877ba3facc526baa2855432ad2d408cf23cb98