Applying physics after being simulated?

Is there a way to apply the physics of a simulated cube at a given frame?

Basically add a active rigid body to a cube, run simulation & once it is on the ground(plane) convert it & apply its location & make that a passive right after, without it resetting to its original location.

I’ve tried many times with a script, but can’t do it with a handler in 2.8
Applying visual tranformation doesnt really work either…