Winget, ID, PID ,A ; Will get the PID of the active window Run, %comspec% /k wmic process %ID% get Commandline | clip & exit Tooltip, %Clipboard%