The Copy-Item Container parameter controls whether the folder structure is also copied.
Lets start with the source material – a folder C:test with a bunch of files. A destination folder C:D1 also exists
PS> Copy-Item -Path c:test* -Destination… Read the full text.