Powershell can be used to call both static and instance methods present in your classes. Suppose the dll is present in the GAC, the first thing we need to do is to load the dll. This can be done in two ways:
If the dll is present at any location in the drive, we can use LoadFile:
Suppose, you have a static method in your class, then it can be called like this:
Where NY.Export is the name of the namespace and SharepointUtility is the name of
the class and TailorContractLibrary is the name of the static method.
Similarly, the instance method can be called by first creating the object of the class
and then calling the method on newly created object:
Here GetContractLibrary is the name of instance method in class SharepointUtility