This behavior is happening, because your Get-ChildItem
command is only retrieving files/folders whose names match *.
. The file name "line21" does not match *.
so it is being excluded.
Change your command to this:
Get-ChildItem -Path . -Include * | Rename-Item -NewName {$_.Name -replace 'line21','line21.map52'};