title: How to validate powershell conditional syntax?
body: <p>Is there a syntax checker for conditionals in PowerShell?
  This code will skip the conditional</p>
  
  <pre><code>if ($templList -ne $null -and $templList.items.Length &gt; 0) {
    $templID=$templList.items[0].id
    write-host $templList.items
  }
  </code></pre>
  
  <p>because the '-gt' is substituted with '>'. </p>