You can find the path in the registry where the javaw app is blocked and get rid of the path to the script file that gets launched instead of the app. That will stop messages from appearing.
You can also do something with mutexes if you wanted but you'd have to figure that out:
http://learn-powershell.net/2014/09/30/using-mutexes-to-write-data-to-the-same-logfile-across-processes-with-powershell/
You can also do something with mutexes if you wanted but you'd have to figure that out:
http://learn-powershell.net/2014/09/30/using-mutexes-to-write-data-to-the-same-logfile-across-processes-with-powershell/