You can not use either of these commands in batch.
First, the commands can’t be executed in batch. Use DSPCMD to see “Where allowed to run”.
Second, there is no System i Access connection for the communication with the PC to run across. How could the commands possibly know where they’re supposed to connect to?
If you need to run some command on some PC, you need to know the address of the PC. Use the RUNRMTCMD command to open the connection. An rexec() service must be available on the PC to accept the connection. The Remote Command service can be installed on PCs out of the System i Access product or other rexec() servers can be located through internet searches.