Steve Endow gives intimate details of how he used .NET code to get explicit with GP Batches and eConnect in his new post.
.NET code to create a Dynamics GP batch with eConnect
Archived post from 2018. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.