title: How to append to powershell Hashtable value?
body: <p>I am interating through a list of <code>Microsoft.SqlServer.Management.Smo.Server</code> objects and adding them to a hashtable like so:</p>
  
  <pre><code>$instances = Get-Content -Path .\Instances.txt
  $scripts = @{}
  
  foreach ($i in $instances)
  {
      $instance = New-Object Microsoft.SqlServer.Management.Smo.Server $i
      foreach($login in $instance.Logins)
      {
          $scripts.Add($instance.Name, $login.Script())       
      }
  }
  </code></pre>
  
  <p>So far so good. What I want to do now is append a string to the end of the hashtable value. So for an $instance I want to append a string to the hashtable value for that $instance. How would I do that? I have started with this, but I'm not sure if I'm on the right track:</p>
  
  <pre><code>foreach ($db in $instance.Databases)
  {       
      foreach ($luser in $db.Users)
      {
          if(!$luser.IsSystemObject)
          {
              $scripts.Set_Item ($instance, &lt;what do I add in here?&gt;)
          }
      }
  }
  </code></pre>
  
  <p>Cheers</p>