View a running program (or process) in the windows command line arguments
using the following command:
WMIC Process GET Caption, the CommandLine / value
If you want to query a particular process line arguments, use the following ways:
WMIC Process the WHERE Caption = "the Svchost.exe" GET Caption, the CommandLine / value
so that you can get the information of a process executable file location.