Powershell 向已包含数据的.csv列添加标题

Powershell 向已包含数据的.csv列添加标题,powershell,Powershell,我有一个.csv文件,其中有一列数据,我需要该列有一个标题。我不知道如何在列中获取标题。这应该可以: import-csv test.csv -Header "Name" | export-csv test.csv -NoTypeInformation

我有一个.csv文件,其中有一列数据,我需要该列有一个标题。我不知道如何在列中获取标题。

这应该可以:

import-csv test.csv -Header "Name" | export-csv test.csv -NoTypeInformation