In the form stated it won't be possible. E.g., if $a_1 = 0$ and $a_2 > 0$, then $f'$ will be increasing near $0$, so $f'(x) for (small) negative $x$, and $f$ will be decreasing in at least a small interval $(-\delta,0)$ for some $\delta>0$.
On the other hand, if $a_1>0$, you can get an increasing function as follows: Start with a function $f$ which has all the prescribed derivatives and has compact support (by multiplying an arbitrary solution with a $\mathcal{C}^\infty$ function with compact support which is $\equiv 1$ near $0$). Now it is enough to find a $\mathcal{C}^\infty$ function $g$ with $g^{(n)} (0) = 0$ for all $n$, and $g'(x)>0$ for $x \ne 0$. Then $f_t= f+tg$ will satisfy $f_t'(x) > 0$ for $x \ne 0$ if $t$ is sufficiently large, implying that $f_t$ is strictly increasing. The construction of $g$ is standard, e.g., $g(x) = e^{-1/x^2}$ for $x>0$, $g(0)=0$, and $g(-x) = -g(x)$ for $x>0$.
Similarly, if the smallest $k$ for which $a_k \ne 0$ is odd, and if $a_k > 0$, you can find an increasing function with the prescribed derivatives (basically by integrating the solution given above $k-1$ times.)