• Thanks Shaun! The latest script works without error.

    How do you normally display the data in a report? I'm currently running the sproc without using the powershell script.