评论

通过使用 #(哈希)符号预先添加行来评论电源脚本

# This is a comment in powershell
Get-ChildItem

你还可以分别在注释的开头和结尾使用 <# 和 #> 进行多行注释。

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