$filesremoved | export-csv -Path E:\Code\powershell\logs\filesremoved.txt -NoTypeInformation
I've also tried
$filesremoved | export-csv -Path E:\Code\powershell\logs\filesremoved.txt -NoTypeInformation -NoClobber
The file appears to be overwritten every time. Is there a way to keep adding content to the file?
I get errors
Export-Csv : A parameter cannot be found that matches parameter name 'Append'.