I am importing and exporting csv files with powershell. I am trying to rename a csv column to include the name of the current week. I am recording the current week in a variable ReportWeek. When the new csv is created, it is adding the text verbatim to the column name instead of using the variable value
Import-Csv $file| Select-Object Name,QA_Level,Team,@{Name= 'Wk + $ReportWeek Lines';Expression={$_.'Lines Typed'}} | Export-csv $pathtofiles\temp\Filename_temp.csv -NoTypeInformation
This is the what the header is written as Wk + $ReportWeek Lines
I would like it to be Wk 2 Lines