Query Z and I Emulator for Windows Sessions

The command PCOMQRY has the following parameters:

/s
Session letter of session to query, The syntax is /s=session-letter. This is optional. If omitted, the first available session letter is used.
/all
Queries all sessions.
/q
Quiet mode. In quiet mode, PCOMQRY does not write any messages to stdout.
/nowait
Do not wait for session to query. The /nowait option tells PCOMQRY to complete execution without waiting until the emulator session is queried. There is no /wait option; the default is to wait until the session is queried.
/?
Displays help information.