I have a class in C# say for example
public class MyComputer : PSObject { public string UserName { get { return userName; } set { userN
First, make sure the assembly is loaded using
[System.Reflection.Assembly]::LoadFrom("C:\path-to\my\assembly.dll")
Next, use the fully qualified class name
$MyCompObj = New-Object My.Assembly.MyComputer