By using this statement "While ($Agent.AudioOutput.Status) <> 0" you are querying the agent itself for the status of something. How would i determine what other properties I could query from the agent? The code I posted was supposed have a "request" which would have a return value that I could query. That way I could just batch up the commands in the queue and only check the last item.

As an example of the problems I'm seeing, your code didn't work for me until I threw in a few more sleep statements because it just ran too fast for the animation to keep up.

_________________________
Mike