Maybe you should state somewhere that there are no spaces allowed in the new project name. If you do use a space, it doesn't compile. Also when you add quotes "" in the build-script, that doesn't work. BEcause when you call your project "test project", the pascal file will be: "test_project.pas", while the build script tries to compile "test project.pas". (When you add quotes, if you don't it will try to compile "test.pas" and "project.pas".