This is not a customer service forum. For issues with your system or with external apps contact MS Support.
The error you are receiving is NOT a PwoerShell exception as in the KB but is an exception caused by the external program,
See:
https://blogs.msdn.microsoft.com/winsdk/2015/06/03/what-is-up-with-the-application-failed-to-initialize-properly-0xc0000142-error/
AND:
0xc0000142 is "DLL Initialization failed". KERNELBASE.DLL can't initialize itself. Processes that run as services have less of some resources available to them by default. My guess is that you're running out of room in the desktop heap, which
is a memory pool from which every process gets some resources. By default, the size of the desktop heap for services is much smaller than it is for interactive processes. There's a tool called DHeapMon which monitors the desktop heap. You could use this tool
to see if that's the problem. Here's a page that covers everything you ever wanted to know about the desktop heap:
blogs.msdn.com/.../desktop-heap-overview.aspx
\_(ツ)_/