By using the name of your prompt window you can then access the further elements.
For example:
tell application "System Events"
tell application process "Keyboard Maestro Engine"
tell window "Optimize PNG"
every UI element
end tell
end tell
end tell
On that topic there are a couple of threads on this forum. For example…