I read the documentation. But I must be a slow learner or something.
I am using an auto baked cake template named index.ctp
For me it’s located cake_app_dir/views/names/index.ctp
< ?php $this->Html->script(array ( 'jquery', 'script2', 'script3'), false);?>
mkdir -p cake_app_dir/webroot/test/one/two
< ?php $this->Html->script(array ( 'jquery', 'script2', 'script3', '/test/one/two/script4.js' ), false);?>
specifying false tells it to output the block where the $scripts_for_layout echo statement is in cake_app_dir/views/layouts/default.ctp