As I mentioned in my Math StackExhange answer Mathematica gives a difference root representation which leads to the formula
$$\frac{\partial^n e^{-\frac{\lambda\, (x-\mu)^2}{2\, \mu^2 x}}}{\partial x^n}=n!\, y(x,n)\tag{1}$$
where $y(x,n)$ is defined recursively as
$$y(x,n)=\left\{\begin{array}{cc}
e^{-\frac{\lambda (x-\mu)^2}{2 \mu^2 x}} & n=0 \\
e^{-\frac{\lambda (x-\mu)^2}{2 \mu^2 x}} \frac{\lambda \left( \mu^2-x^2\right)}{2 \mu^2 x^2} & n=1 \\
e^{-\frac{\lambda (x-\mu)^2}{2 \mu^2 x}} \frac{\lambda \left(\lambda \mu^4+\lambda x^4-2 \lambda \mu^2 x^2-4 \mu^4 x\right)}{8 \mu^4 x^4} & n=2 \\
-\frac{\left(-\lambda \mu^2+4 \mu^2 (n-3) x+\lambda x^2+8 \mu^2 x\right)\, y(x,n-1)+2 \left( \mu^2+\mu^2 (n-3)+\lambda x\right)\, y(x,n-2)+\lambda\, y(x,n-3)}{2 \mu^2 n x^2} & n\ge 3 \\
\end{array}\right.\tag{2}$$
WolframAlpha gives the more general result
$$\frac{\partial^n e^{f(x)}}{\partial x^n}=e^{f(x)} \sum\limits_{k=0}^n \frac{1}{k!} \sum\limits_{j=0}^k (-1)^j \binom{k}{j} f(x)^j \frac{\partial ^nf(x)^{k-j}}{\partial x^n}\tag{3}$$
and for
$$f(x)=-\frac{\lambda\, (x-\mu)^2}{2\, \mu^2 x}\tag{4}$$
Mathematica simplifies formula (3) above to
$$\frac{\partial^n e^{-\frac{\lambda\, (x-\mu)^2}{2\, \mu^2 x}}}{\partial x^n}=e^{-\frac{\lambda (x-\mu)^2}{2 \mu^2 x}} n! \sum\limits_{k=0}^n \frac{2^{-k}}{k!} \sum\limits_{j=0}^k (-1)^j \binom{k}{j} \left(-\frac{\lambda (x-\mu)^2}{\mu^2 x}\right)^j y_1(x,n)\tag{5}$$
where $y_1(x,n)$ is defined recursively as
$$y_1(x,n)=\left\{\begin{array}{cc}
\left(-\frac{\lambda (x-\mu )^2}{\mu ^2 x}\right)^{k-j} & n=0 \\
\left(-\frac{\lambda (x-\mu )^2}{\mu ^2 x}\right)^{k-j-1} \frac{(\lambda (j-k) (x-\mu ) (\mu +x))}{\mu ^2 x^2} & n=1 \\
-\frac{(\mu (j-k-n+1)+x (j-k+2 (n-1)))\, y_1(x,n-1)+(j-k+n-2)\, y_1(x,n-2)}{n x (x-\mu )} & n\ge 2 \\
\end{array}\right.\tag{6}$$
which is a slightly simpler recursion than formula (2) above.