Can you use the MOVE command with variables.
ie: move "c:\temp\"+$filename1 "c:\temp\"+$filename2