I cannot achieve to split an \"if\" condition over multiple lines in PowerShell WITH comments, see example:
If ( # Only do that when...
You can use block comments <# Your Comment #> to do this.
<# Your Comment #>
If ( <# Only do that when... #> ` $foo <# foo #> ` -and $bar <# AND bar #> ) { Write-Host foobar }