Launch process and hide command line parameters from Task Manager
There's no way to pass a command line argument to a process, so that the process can see it, but everything else in the system cannot.
This is an obvious flaw and when programs allow passwords to be passed as arguments, it's usually done for convenience for the user that is not concerned about eavesdroppers. Well designed programs will usually provide, in addition, other secure means of authentication.