Multiline comment in PowerShell Multiline comment in PowerShell powershell powershell

Multiline comment in PowerShell


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

<# a   b   c #>


The multiline comment in PowerShell should work.

If not, try this...

# This is# a# multiline comment.

or

<#This does works for me.#>

If it doesn't work, try to check if you have the correct version of PowerShell.