STRPCCMD only interactive?
Check for STRPCO in this forum. (only CA)
Or you can run a RFROMPCB(RTOPCB) in a .bat file?
There should be no need for STRPCCMD ever. The AS/400 and Windows/Linux PCs can share directories through Windows networking. you don’t need to transfer a file when a file can be directly accessed through a network shared directory. Just put your file into a shared IFS directory (possibly into a /QNTC directory) and the PC that needs it can just map a drive to the same directory. Or the PC can simply use a UNC path ( \\ComputerName\SharedFolder\Resource ) and not map a drive at all.
Also, note that RUNRMTCMD can execute remote commands on a PC that will accept remote commands. You can install the remote command service on a PC through System i Access Selective Setup. Create a local PC user that can act as the user for the commands.
Forget STRPCCMD (except in some very particular circumstances). It’s effectively obsolete and appropriate for DOS Client Access. You probably won’t ever use such a PC again. Learn the technologies that are appropriate today.