This is a quick reference cheat sheet covering PowerShell basics.
source/
file1.txt
file2.txt
dist/ # may or may not exist
Copy-Item source dist
# Result:
dist/
file1.txt
file2.txt
Copy-Item source dist
# Result:
dist/
source/
file1.txt
file2.txt
Copy-Item source dist/ # same as Copy-Item source dist
Copy-Item source/ dist # same as Copy-Item source dist
# Windows ignores trailing slashes
Copy-Item source\* dist -Recurse
# Result:
dist/
file1.txt
file2.txt
source\* to copy contents only.