My guess is that Thanos and his cronies managed to get an idea of how the time machine worked based on Nebula’s memories, and managed to reverse engineer the Pym particles they took from her, in order to transport the ship forward through time.