Stock entry - Batch Creation

Hello, I am doing automatic batch creation in “Stock Entry”, i want to pass 1 custom field from stock entry to batch . do you know how to do it? pls help