title: Using CurrentDomain.SetData("APP_CONFIG_FILE") doesn't work in PowerShell ISE
body: <p>I'm attempting to use a .NET 4.0 assembly in PowerShell ISE, and trying to change the config file which is used via:</p>
  
  <pre><code>[System.AppDomain]::CurrentDomain.SetData("APP_CONFIG_FILE", $PathToConfig);    
  </code></pre>
  
  <p>[Configuration.ConfigurationManager]::ConnectionStrings.Count always returns "1",<br/>and "[Configuration.ConfigurationManager]::ConnectionStrings[0].Name" always returns "LocalSqlServer", and that ConnectionString name is not in my ".config" file.</p>
  
  <p>Note that executing the PowerShell script from a PowerShell command prompt functions as expected.  It's just when I execute it from within PowerShell ISE, it doesn't work as expected.</p>