You need to set PRO_COMM_MSG, please check for the correct name, without this you can’t start Creo. For your batch stuff a EventProcess call before or after each toolkit call should be enough.
If RPN's response answers your question, you could mark that post as an Accepted Solution. Doing this could greatly help other community members with the same question find their answer quickly. Thank you both your participation on the PTC Community!