Implement `runas.exe` counterpart with `netonly` and `NoNewWindow` switches
I need to open Powershell console (within the same window) as different user with /netonly option known from the runas.exe command. I would like to avoid typing manually passwords, because I will use this console to run some scripts automatically.
As far as I know if it currently impossible.
I added appropriate question on SO: https://stackoverflow.com/questions/48882958/powershell-open-new-console-as-different-user-in-the-same-window-runas-neto