I'm surprised that worked at all!
$path = "xxx\xxx"
$files = Get-ChildItem -Path $path -File -Filter *.pdf
foreach($file in $files)
{
# File gets renamed to Test.pdf
Rename-Item -Path $file.FullName 'Test.pdf' -Force
#...Content from file will be extracted here by Get-Content for the email.
#...
#...File will be send by email here...
#...
# File gets renamed to the original name + .edited (MyFileName.pdf.edited)
# If the $file variable has its FullName value equal to C:\junk\test.csv, then
# the result of "$path\$file.edited" looks like "xxx\xxx\C:junk\test.csv.edited"!
# Rename-Item $path'\Test.pdf' "$path\$file.edited" -Force
#
#
Rename-Item ($file.DirectoryName + '\Test.pdf') "$($File.Name).edited" -Force
}