The syntax error seems to be happening because running a Script through a file is not evaluating parameters. So $_param is not recognized, I will file a defect for that. One workaround is to put the script inline, in Edit Script, instead of in an external file. Another is to add a mapper snap before the script which will write the pipeline parameters to the document, the script can run from the file and get the parameters from the input doc.
The second issue is that the jython script cannot do a file rename on a SLFS file, since os.rename() method works on local files only. Since you want to move projects, use a file reader from source, write to destination project and then use the file delete snap to delete the source file.