Extract Data Table as CSV using Perl script

I am looking to write a script to extract the Data Table of Ligand Non-bond interactions in BIOVIA as an Excel/CSV file without using the copy/paste.
I sadly have no experience with Perl scripts but will get to know soon, can someone with prior knowledge help me with this issue. I have come across the in-built functions in BIOVIA which state that these Data Tables are basically Mdm::Array/(JSON type objects) but I do no understand how to extract them.
Is it even possible to extract this data or am I asking for something that is not possible with Discovery Studio?


Any help is appreciated.