Use command:
wmic process get caption,commandline /value
For example:
wmic process where caption="ffmpeg.exe" get caption,commandline /value
wmic process get caption,commandline /value
For example:
wmic process where caption="ffmpeg.exe" get caption,commandline /value