It would be really neat if we could to native interop with classes.
class NativeMethods{
[DllImport("kernel32", SetLastError=$true)]
hidden static extern [bool] SetConsoleMode([IntPtr] $handle, [int] $mode)
}
How much work would it be to get this working?