setfocusedprocess[<process name>]
Sets the focused window in windows to the window of the specified process.
Parameters: