Just start a PowerShell prompt.
[Reflection.Assembly]::LoadFile("Name of your dll")
[Your.NameSpace.And.TypeName]::YourMethod()
I see you want this from C#
Create the Type using the Assembly Qualified name:
var t = Type.GetType("NameSpace.Type,Name Of Dll");
var m = t.GetMethod("NameOfMethod");
m.Invoke(null, new object[] { params });
This should get you started.
I don't exactly know what you mean by "In a new process", but it should not be to difficult to wrap this into a .exe/.ps1 that you can start with some option on the commandline.
So you do not have to create a new .exe for every DLL you want to invoke.
But if you want to start a new process, you should start a new process, this is typically done by starting a new .EXE.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…