PowerTip: Use PowerShell to Find Command Line of Processes
Summary: Learn how to use Windows PowerShell to find the command line of processes.
How can I find the command line that was used to launch a process that is running on my system?
Use the Get-CimInstance cmdlet, the Win32_Process WMI class, and the CommandLine property:
gcim win32_process | select commandline
Note gcim is an alias for Get-CimInstance.