我有样本test.csv文件
"#P","A","E","S"
"1","2","3","4"
"3","5","6",""
"A","B","C",""
"D","F","G","H"
I want output csv file export.csv as
"P","A","E","S"
"1","2","3","4"
"D","F","G","H"
$File1 = Import-Csv -Path "test.csv" -Header "P","A","E","S" | Where { $_.S -ne $null } | Export-Csv "export.csv" -Force -NoTypeInformation
我试过这段代码。哪个不起作用