How to get gpu memory consumption via scripting

You are welcome! With that, I will close out the ticket.