How do I export the results into an Excel spreadsheet and highlight them in green once the files have been deleted from a csv list in Powershell? I have a powershell script that removes files from a csv list. However, I’m not sure how to export the results once the files have been deleted from the list and mark them in green in a spreadsheet in Excel. How would I approach this? Below is my powershell script:
$files = Get-Content "C:\test\remove.csv" foreach ($file in $files) { Remove-Item -Path $file -force }