title: How do I get help messages to appear for my Powershell script parameters?
body: <p>I have a powershell script (<code>setup.ps1</code>), that we use as the entry point for our development environment setup scripts.  It takes a parameter:</p>
  
  <pre><code>param(
      [Parameter(Position=0,HelpMessage="The targets to run.")]
      [Alias("t")]
      [string[]]
      $Targets = "Help"
  )
  </code></pre>
  
  <p>When I run</p>
  
  <pre><code>PS &gt; get-help .\setup.ps1 -detailed
  </code></pre>
  
  <p>in the parameters section, my help message doesn't appear:</p>
  
  <pre><code>PARAMETERS
      -Targets &lt;String[]&gt;
  </code></pre>
  
  <p>What do I need to do to get my parameter help messages to display?</p>