title: Can't add element in array with powershell function
body: <p>I have a strange problem, i have a very simple function.</p>
  
  <p>This is my powershell code</p>
  
  <pre><code>$exclude = @()
  
  function GetOracleDb {
  param([string]$servername)
  $exclude += $servername
  }
  
  GetOracleDb "Myserver2"
  
  $exclude
  </code></pre>
  
  <p>Why my $exclude array is empty?</p>
  
  <p>Thanks for your help</p>