Using ExecuteScriptAtLatestBlock to read state

Hi there,
Can anyone provide me an example script to demonstrate how ExecuteScriptAtLatestBlock can be used to read variables from an existing contract? I understand the method can be used for this, but none of the examples I’ve found demonstrate interaction with another contract.
Thanks, Tim

You can find a simple example here:

The script reads the totalSupply field from the ExampleToken contract defined here: