I exported some mail files from an application and during the export the subject is taken as filename. However there are some files in source system without subject so the file name is also empty (only containing a space). I tried to run a Powershell script to fix all of these. However nothing happens:
Get-ChildItem <location> -recurse | ForEach-Object {if ($_.Name -Like " ") {Rename-Item "subject"}}