I appreciate upgrading might not be a valid option, but version 6.6 has a new command line option, /resourcestatus, which you could use?
/resourcestatus <resourcename> <limit number> <limit type>
- Report sessions for a given resource name, the results can be limited to a specific period
- to list all resources use [All] as the resource name
- by providing a limit number and type (m = minutes, h = hours, d = days, mm = months)
- e.g. /resourcestatus ABC:8181 1 d would return all sessions for the named resource that started in the last day
- Requires user credentials to be supplied via the /user switch
The output is this:
Session ID Status Start Time End Time
7dadb431-360a-41d9-a690-53c88ae82591 Completed 24/07/2019 15:28:33 24/07/2019 15:28:33
82099be0-69ff-4b25-b08d-295837044425 Running 02/10/2019 11:51:37
------------------------------
John Tomkins
Senior Consultant
Blue Prism
Europe/London
------------------------------