Suppose there is a directory with arbitrary nesting and in these directories at different levels are files.
Task:
Take absolutely all the files that are at different levels and move them to one place.
I would like to see how this is done with a classic batch file (If this is possible) and PowerShell.