Вы можете использовать подпроцесс
from subprocess import getoutput
process_info = getoutput('wmic process where "name like \'%{}%\'" get Caption,ExecutablePath,Processid,CommandLine'.format('chrome.exe'))
process_info = getoutput('wmic process where "ProcessID={}" get Caption,ExecutablePath,Processid,CommandLine'.format(14520))