This is an old Spiceworks script I wrote 3 years ago (you can find the original here) and recently someone was asking me about it. When I looked it over I decided it was time for a make-over.
martin9700/Remove-EmptyFolders
This script will detect empty sub-folders in a folder you point it at, and if desired, delete them
PowerShellMIT