I have a Powershell script that calls a method in a C# library. The library dll is loaded as:
[Reflection.Assembly]::LoadFrom(\"$automationHome\\dll\\abc.dll
LoadFrom() should ideally look for the xyz.dll in the same directory as abc.dll
LoadFrom()
xyz.dll
abc.dll
If you are running the script from the same directory as the dlls, add the below and then do the LoadFrom()
$currentScriptDirectory = Get-Location [System.IO.Directory]::SetCurrentDirectory($currentScriptDirectory.Path)