you're right about the batch render unable to find the script. After I put my .mel file in the default maya's script folder, it worked. Thanks