The Window process command returns the process number that runs the window whose reference number is passed in window. If the window does not exist, 0 (zero) is returned.
If you omit the window parameter, Window process returns the process of the current frontmost window.