If you are using SendMessage, the event pbm_custom01 is eventid 1024, pbm_custom02 is 1025 and so on. So one app can find the window handle and send a message using the eventid that corresponds with the custom event you mapped on the window.
Another method would be to use Winsock. The main window of the PB app could listen on a port for messages from the other app.