You are talking about PowerShell?
In PowerShell the #
is for comments (one line or in the middle of a line).
If you like to have more lines in a row as a comment use <#
at the beginning and #>
at the end.
# Some examples
Get-Help # this is a comment following a cmdlet
<#
This a block where you can comment in lines.
Just as an example
#>
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten