I'm currently importing my custom Powershell datatypes using the "Using Module" keyword and instantiating using the "New-Object" cmdlet.
Example:
Using Module .\MyClass.psm1
$a = New-Object -TypeName MyClass -ArgumentList ($param1, $param2)
My issue is that I would like to modify the module and reload the datatype without having to restart the shell, but I can't seem to find a way to do this with the "Using" keyword. Does anyone know how to make this work?