Hearts face the arduous journey to face opening Conference League opponents Dinamo Minsk in Azerbaijan on Thursday then visit Aberdeen the following Sunday.
Winning this game would have been the ideal boost and though their winless run stretches to a 12th game, Shankland's late goal gives them something of a tonic.
In truth, they should have been in front early on. County goalkeeper Laidlaw could only palm a shot from Forrest and Shankland pinched the ball just next to the byeline to tee up Forrest, whose shot was blocked by Ryan Leak.
And, after falling behind, they carved an excellent chance when Stephen Kingsley found Shankland with a back-post cross and the Scotland forward nodded wide.
Substitute Barrie McKay struck past after a one-two with Shankland and both Jorge Grant and Shankland were denied by Laidlaw as time ticked away. Shankland would have the final say, though.