Changing the return object for resource commandlets

Changing the return object for resource commandlets