Assistance with a PowerShell Script

I am looking for assistance with creating a PowerShell script to copy files from 1 computer to another.

The batch file is below. Thanking everyone in advance for their assistance.

rem @ECHO OFF
CLS
SET USER=smitham
SET COMPUTERSOURCE=\\computer-name
SET COMPUTERDIST=\\computer-name
ECHO.
:CheckForFile
If EXIST "C:\Windows\System32\Robocopy.exe" goto continue
IF NOT EXIST "C:\Windows\System32\Robocopy.exe" goto END
ECHO.
ECHO.
:CONTINUE
ECHO.
ECHO Robocopy found on PC - Copying will begin from Source PC to Distination PC
ECHO.
ECHO.
ECHO Robocopy - Copying users data files
ECHO Documents, Pictures, Favorities, AppData, Quick Launch
ECHO.
ECHO.
ECHO Logged time = %time% %date%
ECHO.
ECHO.
ECHO.
PAUSE
rem robocopy.exe "%COMPUTERSOURCE%\c$\Users\%USER%\Favorites" "%COMPUTERDIST%\C$\Users\%USER%\Favorites" /s /e /r:5 /w:5
rem robocopy.exe "%COMPUTERSOURCE%\c$\Users\%USER%\Downloads" "%COMPUTERDIST%\C$\Users\%USER%\Downloads" /s /e /r:5 /w:5
rem robocopy.exe "%COMPUTERSOURCE%\c$\Users\%USER%\My Pictures" "%COMPUTERDIST%\C$\Users\%USER%\My Pictures" /s /e /r:5 /w:5
rem robocopy.exe "%COMPUTERSOURCE%\c$\Users\%USER%\Documents" "%COMPUTERDIST%\C$\Users\%USER%\Documents" /s /e /r:5 /w:5
rem robocopy.exe "%COMPUTERSOURCE%\c$\Users\%USER%\Desktop" "%COMPUTERDIST%\C$\Users\%USER%\Desktop" /s /e /r:5 /w:5
rem robocopy.exe "%COMPUTERSOURCE%\c$\Users\%USER%\AppData\Local\Microsoft\Outlook" "%COMPUTERDIST%\C$\Users\%USER%\AppData\Local\Microsoft\Outlook" /s /e /r:5 /w:5
rem robocopy.exe "%COMPUTERSOURCE%\c$\Users\%USER%\AppData\Roaming\Microsoft\Outlook" "%COMPUTERDIST%\C$\Users\%USER%\AppData\Roaming\Microsoft\Outlook" /s /e /r:5 /w:5
rem robocopy.exe "%COMPUTERSOURCE%\c$\Users\%USER%\AppData\Roaming\Microsoft\Signatures" "%COMPUTERDIST%\C$\Users\%USER%\AppData\Roaming\Microsoft\Signatures" /s /e /r:5 /w:5
rem robocopy.exe "%COMPUTERSOURCE%\c$\Users\%USER%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch" "%COMPUTERDIST%\C$\Users\%USER%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch" /s /e /r:5 /w:5
ECHO.
ECHO.
ECHO Robocopy - Copying Outlook PST files
ECHO.
ECHO.
ECHO PST files copied to new laptop C:\PST_Files
ECHO.
ECHO.
SETLOCAL EnableDelayedExpansion
DIR /B /P /S %COMPUTERSOURCE%\c$\*.PST > "%COMPUTERSOURCE%\c$\Users\%USER%\Desktop\pstFileLocation.txt
MD "%COMPUTERDIST%\C$\PST.Files"
For /f "delims=" %%i in (%COMPUTERSOURCE%\c$\Users\%USER%\Desktop\pstFileLocation.txt) do copy %%i "%COMPUTERDIST%\C$\PST.Files"
pause
ECHO.
ECHO.
ECHO Logged time = %time% %date%
ECHO.
ECHO.
pause
:END

Parents
No Data
Reply Children
No Data