Jess Pomfret shows how you can build out Powershell comments with multiple lines of code in them:
You can see above the first example looks good, however in the second example the first two lines should both have a prompt to show they are code. I spent a little while Googling this without much avail. I then figured, somewhere within dbatools there must be an example with two lines of code. Sure enough I found my answer, and it’s pretty straightforward.
Click through for the answer, as well as one of the most important Powershell cmdlets you’ll ever find on the Internet.