I developed a PowerShell module that relied on a .NET Assembly for some operations. I refactored this module to not need that Assembly and noticed some strange behavior,
Why not defining all classes in C# in a separate file, than add it as Add-Type -path MyClasses.cs This way it will work with older PS versions