If you do not mind using your own team, then
robocopy '.\Alfresco Development Config Files' C:\Alfresco\tomcat\shared\classes /s /XA:H
(It may be necessary to specify the full path for the source, since the current PowerShell directory and the current working directory of the process are not the same (and cannot be in the general case)).
Fixing the previous version of PowerShell is likely to be possible, but cumbersome.
source
share