Export Hounsfield Unit values as a table from each segmentation

Thank you so much.
Could you get the table via that script (x, y, z, and Hu)?
I want to get that table, but the scripts I used do not work. Could please send me your script?

Best,
Somayeh