I'm trying to get the PID of a process on my system.
For example: when I run the query
sc querex Fax
it returns the type, state, win32_exit code, PID, etc. How would I get the PID and turn it into a variable so I can use it later in the batch file?