No you can't do it for all of them, if definitely wouldn't work on decrypt.sh, jsshrink.sh, jsunshrink.sh, makedoc.sh, installto.sh, msgimport.sh, msgexport.sh, update.sh It may work on dumpschema.sh and it should work on cleandb.sh, and indexcontacts.sh
The other step I for to mention was you need to replace:
require INSTALL_PATH.'program/include/clisetup.php';
With:
require INSTALL_PATH.'program/include/iniset.php';