I'm not sure why you inserted the "@Echo " in here, but after I removed it, it ran just fine.
Because in testing on my system the command would of course simply fail without providing any useful information. The Echo allowed me (you) to confirm that the resultant command was OK in a benign way.
I did notice that changing from RUN to SHELL (as you did in your code) will let it release the task when complete. For this puzzle, that will be the final solution since this particular task runs so quickly. I do wish I could use the RUN command instead for future endeavors
RUN *should* work just as well. I suspect that XCOPY is up to something and being a little too clever for it's own good. When you get multiple copies running in sub-shells at the same time it's getting tied in knots and not letting go of the console.
this gets me out of today's jam.
Thank you to Allen and Richard H. both for your contributions. You have both been most helpful.
Good stuff, maybe we can wean you off the Dark Side now that you are on the path to enlightenment.