我已經得到一個PowerShell的對象屬性的名稱值轉換成字符串
$infile | gm -type NoteProperty
Name MemberType
------- ----------
Column1 NoteProperty
Column2 NoteProperty
etc...
導入的CSV文件
$infile = import-csv .\myfile.csv
現在我可以顯示的列(現爲對象屬性)我想要什麼do是將Name(Column1..)
的值變成一個變量。