Added a way to check the creds to see if its is an object or a location and handles it accordingly.

Can we move this below the example (but above the FAQ)?  This allows the example to give context to the possible arguments.