Generalized zeta function regularization for scalar one loop effective action