i found the solution for copy files and below is the working script for me from the copy part
download http://appserver:52311/Uploads/stage/RunAsCurrentUser-2.0.3.1.exe
// copying the xml and csv files to the network location i.e. \server1
delete vjcopy.cmd
delete “c:\temp\vjcopy.cmd"
createfile until @end_create_copy_file
c:
cd c:\temp
SET mydir1=”\server\IEM_Action_History\IEM_PATCH_REPORT"
copy /y c:\temp{parameter “outfile”} c:\temp\RawData.xml
xcopy /y c:\temp\RawData.xml %mydir1%
SET mydate=“p13_%date:~-4,4%%date:~-10,2%%date:~7,2%”
SET mydir2="\server1\h$\IEM_PATCH_REPORT_BACKUP%mydate%"
mkdir \server1\h$\IEM_PATCH_REPORT_BACKUP%mydate%
xcopy /y c:\temp{parameter “csv_outfile”} %mydir2%
xcopy /y c:\temp{parameter “outfile”} %mydir2%
@end_create_copy_file
move __createfile vjcopy.cmd
copy vjcopy.cmd “c:\temp\vjcopy.cmd”
wait __Download/RunAsCurrentUser-2.0.3.1.exe --w cmd.exe /C c:\temp\vjcopy.cmd