I am having similar issues I think. My script is simple and is just using an XCOPY command, but I think the %USERNAME% variable is having issues. Any ideas why this is not working? Thanks!
XCOPY "C:\Users\%USERNAME%\Desktop" "H:\DeskFavs\Desktop" /D /S /Y
XCOPY "C:\Users\%USERNAME%\Favorites" "H:\DeskFavs\Favorites" /D /S /Y