title: Powershell dll loading
body: <p>I have a Powershell script that calls a method in a C# library. The library dll is loaded as:</p>
  
  <pre><code>[Reflection.Assembly]::LoadFrom("$automationHome\dll\abc.dll") | Out-Null
  </code></pre>
  
  <p>Now, my C# library uses another library xyz.dll in it. I believe I don't need to load this in Powershell script, since the abc.dll will resolve it. However, I am getting an error saying:</p>
  
  <blockquote>
    <p>Could not load file or assembly 'xyz, Version=1.0.0.0,
    Culture=neutral, PublicKeyToken=null' or one of its dependencies. The
    system cannot find the file specified.</p>
  </blockquote>
  
  <p>Can someone please tell me how to fix this?</p>