@RPTARGET — Returns the target of a reparse point.

Syntax:
%@RPTARGET[filename]

filenamethe reparse point to examine

This function effectively combines the capabilities of @JUNCTION and @SYMLINK. Currently symlinks (relative and absolute), junctions, and AppX execution aliases are supported. No wildcards, directory aliases, or other funny stuff. @RPTARGET only takes one argument. There is no need to quote it, though you can if you want to.

echo %@rptarget[%userprofile\start menu]