📅  最后修改于: 2022-03-11 14:50:04.338000             🧑  作者: Mango
if (-not ([System.Management.Automation.PSTypeName]'MyClass').Type)
{
Add-Type -TypeDefinition 'public class MyClass { }'
}