How to restore broken ".svn" subfolders

If your local ".svn" folders was broken,
you may redownload them with "svn co https://..."
but how to place them in right place?
".svn" exists in all subfolders of the project...
Call this batch from TEMPORARY COPY project root
ALL FILES except of ".svn" folders will BE DELETED!
After that, you may copy all folders
in the right place to restore your local ".svn" copy...
PowerShell ToDo fixes

PowerShell 2.0 support
Simplified call for external id's. For example "tc e1234".