I have to convert a batch script to PowerShell. I came across these few lines of code and I have no idea what they do. Could someone explain it, especially the echo statements and robocopy?
set logdir=D:\Internal\Log
set runlog=%logdir%\run.log
set roboexe=robocopy /NJH /XX /NP
echo ^<!-- 1>>%runlog% 2>&1
echo Move-Copy - %account% %Time:/=% 1>>%runlog% 2>&1
echo Found files for %account% IN 1>>%runlog% 2>&1
%roboexe% "%fromdir%" "%historydir%" %wildcard% 1>>%runlog%