To comment on power scripts by prepending the line using the \\# (hash) symbol

# This is a comment in powershell
Get-ChildItem

You can also have multi-line comments using <# and #> at the beginning and end of the comment respectively.

<#
This is a 
multi-line
comment
#>
Get-ChildItem