generateManifest only describes two parameters but three are needed. What "syn" is is not explicit, and it is a convention in the docs to have it be the login or client at the top of the script. If it is required that would be important to know.
It is also unclear what files it is creating the manifest from. Are these entities that are already on synapse? Are they local files, can it be both, etc.