Windows 10 robocopy vs xcopy
XCOPY vs RoboCopy: On modern Windows systems, the advantages of robocopy for one thing, it's just there. There is a third party tool called XXCOPY that does robocopy but prefers more XCopy. But it is a third-party tool, and it is not free for commercial use. The other good thing is that RoboCopy can sync files and resume if it's interrupted.
powershell script to run robocopy