set-location "C:\dev\SSMS projects\OCTPDBA-662 - Export LORE in CSV format for AI" Get-ChildItem .\out -Filter *.csv | ForEach-Object { $n = $_.FullName.replace(".csv", "")+".done" #write-output $null >> "$($n).done" Write-Output $null >> $n }