You can execute ECRTP from a Visual Basic script. For Visual Basic, there are four API functions to call an EDI server directly. The commands are:
INBOUNDRUNCmd
OUTBOUNDRUNCmd
INRUN
OUTRUN
Use INBOUNDRUNCmd and OUTBOUNDRUNCmd for inbound and outbound mapping. Use INRUN and OUTRUN for Memory I/O inbound and outbound mapping.
Visual Basic developers can design and build their own forms and module to call either of those API functions. Here is a code example for a module and a form.