Adds a Microsoft .NET class to a PowerShell session. You can specify the type by specifying an existing assembly or source code files, or you can specify the source code inline or saved in a variable.
online version https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/add-type?view=powershell-5.1&WT.mc_id=ps-gethelp schema 2.0.0 You can ...
Windows PowerShell CTP3 has a lot of very cool things. CTP2 introduced the Add-Type cmdlet, which allowed you to dynamically compile C# in PowerShell. It was actually possible to use the ...
Add-Type "public class Style {}" -ReferencedAssemblies WindowsBase.dll compiles (but wouldn't in a pristine session if you specified a non-existent assembly). The bug doesn't affect Windows PowerShell ...