I cannot achieve to split an \"if\" condition over multiple lines in PowerShell WITH comments, see example:
If ( # Only do that when...
This seems to work:
if ( # Only do that when... ( $foo )-and # foo AND ( $bar ) # bar ) {Write-Host 'foobar'}