Quote (Schwag @ 4 Feb 2013 18:24)
Never used Powershell, but I googled Powershell comments and it appears you simply add a # at the beginning of the line.
For block comments, <# COMMENTED CODE #> should work.
Thanks for the answer but I didn't mean commenting. I meant at the same style like
$ErrorActionPreference = "SilentlyContinue"
but so that it silences all output