RooFit on batch mode using bsub

Hello everyone,
I am doing ToyMC study for my analysis. I want to run my RooFit macro on batch mode using bsub. Can some please provide me the instruction how to do it.

thanks in advance,

Kamal Dutta