A simple supporting shelf bracket with a 2 holes, one for the cupboard and one in the shelf.
A quick hack in TinkerCAD.