Q. How can I create an entire commented block of code in PowerShell?
A. Normally a line of PowerShell can be commented out by prefixing # to the line however if you want to comment multiple lines then the easiest way is to enclose the content in <# #>. For example
write-output "Start of something" <# all of this content will be commented out #> write-output "Now stuff again"