Say you have a folder structure like the following where under each folder there are files but you want to copy the files in the subfolders to it’s own directory
You can run the following PowerShell command
Copy-Item -Path 'C:\users\%username%\Documents\test\*' -Recurse -Container:$false