I'm working on a story about Earth or an Earth like planet with current or very near future levels of civilisation and technology drifting or speeding out of the solar system. Currently my method for achieving this is the gravitational effects of a rogue object passing nearby (a bit more research to be done on how big a rogue object is needed).
I understand that were this to happen it is pretty much impossible for the population of the planet to do anything about it. However there is no doubt that they will try.
So my question is what might they consider or try to do to prevent the home planet going rogue? Anything they could consider trying right from the moment of discovering the incoming rogue object onwards is admissible.
I'm not asking about how they might try to survive for as long as possible on the rapidly cooling world. Nor about attempts to set up colonies on other planets etc, just about attempts to stop Earth/Earth analogy being sped off to an uninhabitable place.
However if for example there was a way to try to get Earth captured in orbit around a gas giant on the way out of the solar system and this would leave Earth somehow habitable then this would be admissible.
To be clear - I know that they are doomed, I just want to know what they might consider and try anyway to provide background to my main narrative.