Script. to test apple sound theme

Hi, guys,
I want to write a script to test if the sound system works well, (the functionality of changing sound, etc)
but I don’t find the class in dictionary.
Is this achievable
Thank you!!!

Can you be more specific? Not sure I understand what you would want a script to do