Multiline comment in PowerShell

powershell, powershell-2.0

Solution

In PowerShell v2 and newer, use the following syntax for the multiline comments:

<# a
   b
   c #>

Problem

Can we comment multiple lines together in PowerShell? I tried looking, but I didn't find any answer. It's quite irritating to comment each line manually if the script is too long.

Original source

Related problems