If the batten on the left is well screwed to the wall then construction adhesive would hold it down to the wall top. I wouldn't want to rely on adhesive alone for the batten
If you wanted the support to be less visible then a length of steel angle would do you.