We recently migrated to IRIS. Before, the CACHE.EXE executable could be invoked from a batch file directly :
C:\InterSystems\Cache\bin\cache.exe -s C:\InterSystems\Cache\mgr -U %SYS
This will display the following in console :
Node: DESKTOP-8H4B321, Instance: CACHE
USER>
Additionally, the pipe instruction can be used to redirect some commands directly
echo write 50 | C:\InterSystems\Cache\bin\cache.exe -s C:\InterSystems\Cache\mgr -U %SYS