Looking at
the documentation[
^], the first parameter needs to be the fully qualified assembly name, not a path to the assembly.
That suggests this method only supports assemblies which are registered in the GAC.
It also doesn't support anything written for any version of .NET after 3.5.
You
might be able to use the NetPhp library to accomplish what you want:
GitHub - david-garcia-garcia/netphp: .Net interoperability wrappers for PHP[
^]