Batch process publish .i.dgn

When I try to use batch process tools to publish .i.dgn for some .dgn model. I use the command as shown below. After runing the command, I only get some .dgn.i.dgn file and shows some errors in the message center. Kind help instruct me how to do. 

Command Field:

reference detach all #detach all reference
publishdgn forcerepublish on #republish all i-model
publishdgn removeimodels on #remove intermediate files
publishdgn publish force #important
publishdgn package outputfilenames #package
publishdgn createdgndbimodel #create an i-model file

Message Center: