I don't have WinRAR, so I can't check the syntax for the rar command, but you could create a batchfile (backup.bat) like:
cd %1
"C:\Program Files\WinRAR\WinRAR.exe" a -esh -m5 -mt2 -r -s -t "..\%1.rar"
cd ..
And invoke it with
backup A
from the temp folder. That might be a start...