创建自定义对象$obj = [pscustomobject]@{a=1;b="";c=$null}% 选择属性列$obj | gm | % definition( $obj |gm ).definition$obj | gm |select -ExpandProperty definition?过滤条件'=$' 表示以 等号 结尾PS创建自定义对象: http://www.cnblogs.com/dreamer-fish/p/3804168.html