Added waitFor to the launched script in order to be totally synchronous