Questions on how to cerrectly wire a rechargeable battery to a laser pointer

Thanks Paul, does this seem like a project that would require a microcontroller and if, is there any ultra compact board you could recommend?