Generating client logs then collecting the logs in a usable way

What do these CSVs contain?

Detailed local account information. Stuff like account name, display name, enabled\disabled, last logon, and through true or false detecting whether the user is a member of either the local administrator or remote desktop users groups. I know powershell so I write powershell. I don’t doubt there’s a way do this with an action script, but I’m not too action script savvy.

Can you elaborate on the REST API. I’ve wrapped Powershell around REST only a few times and have found @jpsthecelt examples here. Anything else to guide me in the right direction?

Thanks @jgstew, as always you’ve been a lot of help!