Hi,
can you please provide some more information:
- What is the error messahe that you get when running the PowerShells part?
- Why don't you do the copy with PowerShell directly:
Use PowerShell to Copy Files and Folders to a New Location
https://devblogs.microsoft.com/scripting/use-powershell-to-copy-files-and-folders-to-a-new-location/
Thanks and Regards,
----------
If my reply was helpful please don't forget to upvote and/or accept as answer, thank you!
Regards,
Stoyan