Dash character is not viable in script file name
The main script is renamed to represent the PlotID which is built by connecting the project name and connecting it with the generated random ID with a dash. But dash files in a script name are invalid in matlab, so the script cannot be executed.
Simplest solution is to replace the dash with an underscore in the createfilecopy.m