Its a charger, an extra power source.
@OP Have you tried plugging the Mac into the correct charger to see if the Mac's battery charges. If the gadget you used ran to far down the Mac would run off if its own battery and eventually discharge enough that the machine shuts down. Once that happens I bet the battery pack you mentioned does not provide enough juice. Which one did you use.