Create an external testprogram for validation

For a test procedure human actions are to be simulated on a custom made complex faceplate or graphic.
The graphic,  faceplate and related configuration are present on an isolated Virtual Machine for testing.
On this VM a testprogram (test.exe) will be imported to act on the graphic, faceplate and read values.
This testprogram should 'click' selectable objects and read displayed values.
How can I identify all objects in a graphic / faceplate and get the windows handle and other properties?