A generalised Ricci-Hessian equation on Riemannian manifolds