I am successfully deleting files as expected using the below command; however, I\'d like to get a count of the items deleted.
Get-ChildItem $dPath -Filter \"*.bl
You can write the FileInfo returned by Get-ChildItem to the output pipeline after deleting them:
FileInfo
Get-ChildItem
Get-ChildItem -Path $path | ForEach-Object { Remove-Item $_; Write-Output $_} | Measure-Object