You pretty much cannot. According to about_Classes help: Class keyword Defines a new class. This is a true .NET Framework type. Class members are public, but only public within the module scope. You can't refer to the type name as a string (for example, New-Object doesn't work), and in this...
html,powershell,powershell-v5.0
You could try with an Internet Explorer COM object: $ie = New-Object -COM 'InternetExplorer.Application' $ie.Navigate("file://$($PWD.Path)/passwordreminder.html") do { Start-Sleep -Milliseconds 100 } until ($ie.ReadyState -eq 4) # do stuff I don't have PowerShell v5, though, so I can't test. If HTMLFile is broken, this might be as well. You can call...