ENVI batch code is based on IDL so it requires to develop/write the codes in the IDL development (using IDL and ENVI API)
Here is a link to an example of RPC orthorectification in batch mode in ENVI batch mode.
http://www.exelisvis.com/docs/ENVITas...