Get Vray Light Dome texture

Hi, does anyone know the proper max script command to get the texture path ?

if its a regular bitmap, and the dome light is selected, you can use:
$.texmap.filename

otherwise if its a vrayhdri/vraybitmap and the dome is selected you can use:
$.texmap.HDRIMapName

Thank You ! This worked for my needs