So, what is your question?
If you are trying to copy files here is a script that will do it if the file paths already exist. This script is provided as is and with no warranty.
$path = “path to source files”
$path1 = “path to destination”
$files = ls $path
foreach($file in $files)
copy-Item $path\$file $path1\$file
if you need anything else Powershell relatd let me know: