Crude, but could you use the RMTCMD capability in a DOS batch file? Something like this:
RMTCMD RUNQRY QRY(MYLIB/MYQUERY) //10.198.16.4
The RMTCMD command can work, but not by itself. It will need someone to supply user profile/password every time it runs.
From a user’s PC, that’s usually not a problem because the user has already signed into a session. When a server tries to execute RMTCMD, it’s unlikely that any “user” has already signed on. So, you might use the CWBLOGON command from an iSeries Access install to supply a profile/password.
After the RMTCMD completes, run CWBLOGON again with parms to clear the profile/password cache.
Run the commands with /? as the only parameter to see the Windows help text for them.