Assuming you want to execute TEST.BAT, which is in your path, you could execute %@SEARCH[test] which will yield the desired result when %0 is expanded in your batch. Another way would be to use the internal variable %_batchname, which expands to
...
more