The oscillatory behavior of the integral is really pesky, so we need some control over this. A well-known trick is to perform integration by parts to facilitate cancellation and thus improve the speed of convergence.
To this end, we first split the integral into two parts: for $a = \log(3/2)$ and $\epsilon < a < R$, we have
$$ \int_{\epsilon}^{R} x^b \cos (e^x) \, dx = \int_{\epsilon}^{a} x^b \cos (e^x) \, dx + \int_{a}^{R} x^b \cos (e^x) \, dx =: I_1(\epsilon) + I_2(R). $$
Integral $I_1(\epsilon)$. We find that $0 < \cos(\tfrac{3}{2}) \leq \cos(e^x) \leq 1$ for $x \in [0, a]$ and hence
$$ \cos(\tfrac{3}{2}) \int_{\epsilon}^{a} x^b \, dx \leq I_1(\epsilon) \leq \int_{\epsilon}^{a} x^b \, dx $$
Taking $\epsilon \downarrow 0$, we find that $I_1(\epsilon)$ converges if and only if $b > -1$.
Integral $I_2(R)$. Write $x^b \cos(e^x) = (x^b e^{-x}) \cdot (e^x \cos(e^x))$. Then by integration by parts,
$$ I_2(R) = R^b e^{-R} \sin (e^R) - a^b e^{-a} \sin(e^a) + \int_{a}^{R} (x^b - bx^{b-1})e^{-x} \sin (e^x) \, dt. $$
Notice that this converges for any $b$ as $R \to \infty$, since the integrand decays exponentially.
Therefore the improper integral converges if and only if $b > -1$.