powershell replace and rename file name

C++
mv original_filename.whatever new_filename.whateverGet-ChildItem -Path "C:\All" -Filter "*.pdf" | Rename-Item -NewName { $_.BaseName.Replace(".","_") + $_.Extension }

Source

Also in C++: