Yes it can be scripted. Some questions would be what do you want for an output? Do you need an output for each out of tolerance condition or just one output at the end of execution?
You could probably bastardize one of the existing code samples. I think there is one out there that counts up the total out of tolerance.
I have had issues lately where I can't run scripts any more on a machine where I do most of my debugging but I recently uninstalled and reinstalled (over other issues) so I might be able to run there now, not sure.
Could you describe your "output" requirements?
craiger_ny