Looking at the links you provided, the workflow would be the best option as it looks like it does everything you would like. If you really want to use the powershell script you're going to have to modify it to output the results to a custom dataclass that you'll have to create first. It looks like the Dell API requires you to sign up for access and you'll eventually receive your own API key. Alex's workflow article contains the link to do so. Try getting your own key and modify the script to use it. That's probably the issue.