This is what the Trigger Application step with an Asynchronous mode was created for starting in CCX 5.0. The idea is that a script can trigger another application/script which can run independently. You need to use the contact's session to pass data back and forth between the two scripts. I.E the second script saves the results to the session when it is finished. Your first script can check those session variables when it is ready.