Powershell:将父文件夹中的所有子目录和内容复制到另一个文件夹目标

Powershell: Copy all Subdirectory and Contents in Parent Folder to Another Folder Destination

我有一些名为

的文件夹
C:\Source
C:\Destination

C:\Source contains 
  ---> FolderA (having few files)
  ---> FolderB (having few files)
  ... etc

我想将所有子目录复制到 C:\Destination

我将如何编写将所有多个变量子文件夹复制到目录中的 Powershell 程序?

这不起作用,因为它会导致将所有源文件夹复制到目标文件夹,从而导致

How to copy folder with subfolders?

C:\Destination\Source

想要保持相同的子目录文件夹结构

这似乎有效

Get-ChildItem -Path "C:\Source" |
Copy-Item -Force -Destination "C:\Destination" -Recurse -Container