I had to set up a whole page to experiment with Horizons, and after weeks of testing I ended with this url, which you can see here exploded for better readability:
https://ssd.jpl.nasa.gov/horizons_batch.cgi?batch=1
COMMAND='-85' <---- Target: LRO orbiter
CENTER='coord@301' <---- Observer: Specify coordinates of point on surface with SITE_COORD
SITE_COORD='10,20,1737' <---- Site location: Longitude, Latitude, Distance
from center of target body.
TABLE_TYPE='VECTORS' <---- Ask vectors table containig quantity "RG", which is
target/observer RanGe (distance)
VECT_TABLE='6' <---- Type of vectors table
START_TIME='2019/11/28 17:16'
STOP_TIME='2019/11/29 17:16'
STEP_SIZE='1h'
---- Other parameters (useless?) -----
OBJ_DATA='yes'
MAKE_EPHEM='yes'
REF_PLANE='ECLIPTIC'
COORD_TYPE='GEODETIC'
REF_SYSTEM='J2000'
OUT_UNITS='KM-S'
VECT_CORR='NONE'
CAL_FORMAT='CAL'
ANG_FORMAT='HMS'
APPARENT='AIRLESS'
TIME_TYPE='UTC'
TIME_DIGITS='MINUTES'
RANGE_UNITS='AU'
SUPPRESS_RANGE_RATE='no'
SKIP_DAYLT='no'
EXTRA_PREC='yes'
CSV_FORMAT='yes'
VEC_LABELS='yes'
ELM_LABELS='yes'
TP_TYPE='ABSOLUTE'
R_T_S_ONLY='NO'
CA_TABLE_TYPE='STANDARD'
Result:
*******************************************************************************
JDTDB, Calendar Date (TDB), LT, RG, RR,
**************************************************************************************************************************
$$SOE
2458816.219444444, A.D. 2019-Nov-28 17:16:00.0000, 7.629721177258104E-03, 2.287332865584860E+03, 8.814594260485629E-01,
Use this command to get a list of all supported bodies and spacecrafts (COMMAND = '*')
Use this command to get a list of all supported surface sites for Moon (CENTER='*@301')