title: How to silence a warning or even better if you know why: is assigned but never
body: <pre><code>$global:ProjectName = $null
  
  function RunFirst(){
    RunSecund
    Write-Host $global:ProjectName
  }
  
  function RunSecund(){
      $global:ProjectName = "a name"
  }
  </code></pre>
  
  <p>In RunSecund I get:</p>
  
  <blockquote>
    <p>The variable 'ProjectName' is assigned but never used. PSScriptAnalyzer(PSUseDeclaredVarsMoreThanAssignments)</p>
  </blockquote>