в 7.1.3 работает четко, но выбивает
Код:

Line |
16 | … der" -Directory -Recurse |? {(dir "$($_.fullname)").count -eq 0} |del
| ~~~
| Directory C:\A\WindowsPowerShell\Modules\WindowsPSModulePath\1.0.0 cannot be
| removed because it is not empty.
самОй работе не мешает