Derbyshire poised for victory over Middlesex