This simply gets the output of an admin socket command, makes sure it's json, and runs a user-provided test script on it.