我已经得到一个PowerShell的对象属性的名称值转换成字符串
$infile | gm -type NoteProperty
Name MemberType
------- ----------
Column1 NoteProperty
Column2 NoteProperty
etc...
导入的CSV文件
$infile = import-csv .\myfile.csv
现在我可以显示的列(现为对象属性)我想要什么do是将Name(Column1..)
的值变成一个变量。