$path= "d:/000"
#Get-ChildItem -Recurse $path | Where-Object -FilterScript {$_.psiscontainer -eq $true} | Where-Object {($_.GetFiles().Count -eq 0) -and ($_.getdirectories().count -eq 0)} | Remove-Item
$items = Get-ChildItem -Recurse $path | Where-Object -FilterScript {$_.psiscontainer -eq $true} | Where-Object {($_.GetFiles().Count -eq 0) -and ($_.getdirectories().count -eq 0)}
if ( $items.exists)
{
"EmptyFolders :"
$items
$items.delete()
}
else
{
"NO Empty Folder!"
}