Want a simple Powershell script to remove spaces in file name? No problem.

Get-ChildItem | Rename-Item -NewName { $_.name -replace " ","_" }

save this into a text file rename the .txt to .ps1.

Play around with the " ","_" and see if that works for you.