Sorry about the late reply, didn't see this earlier.
The problem is with lines like these:
Rename C:\Xbox Book.xtf C:\Xbox Book.bak
The two arguments above need to be quoted, because they contain spaces. And inside quotes, the backslashes need to be doubled up... So here's what the line becomes:
Rename "C:\\Xbox Book.xtf" "C:\\Xbox Book.bak"
Do this to any argument that contains spaces