From any scripting language other than IJ1 macros, you’ll have to use ImageJ’s Java API to interact with the application. See javadoc.scijava.org for an overview of Java API documentation pages by project.
In your case, you might want to query an ImageJ1 ResultsTable object for the values in the results table. Looking through the available methods, getValue() might fit your needs.
In Python/Jython (and using a script parameter to get the ResultsTable object), this will look like: