I am a C# .NET developer/architect and understand that it uses objects (.NET objects) and not just streams/text.
I would like to be able to use PowerShell to call methods on my .NET (C# library) assembies.
How do I reference an assembly in PowerShell and use the assembly?
Take a look at the blog post Load a Custom DLL from PowerShell:
Take, for example, a simple math library. It has a static Sum method, and an instance Product method:
Compile and run in PowerShell: