comment multiple line in powershell

Clear2all Professional Blog new

How to use PowerShell Multiple-Line Comments

How to use PowerShell Multiple-Line Comments?

Use Windows PowerShell multiple line comments in your script or from the console. It is good for debugging for later using it multiple times reuse in other scripts.

Syntax:

Begin the comment with the <# tag, and end the comment with the #> tag:

<# this is a comment on several different lines #>

 

When we enter # on each line or the “#” and “#>” to surround each code block in a … Read the rest