we are on Unix, so maybe you can use this as a template to build into a bat file.
#!/bin/ksh
#
#
# This script performs log file cycle operations for HCI environments
# specified in “$SCRIPTDIR/hci.profile
#
# set -x
export SCRIPTDIR=/home/hci/.cluster
export FPATH=/qdx/quovadx/qdx5.5/integrator/kshlib
#SCRIPTDIR=.
#
# Load HCI environment variables
# (Root, site, processes to start, threads to start)
#
. $SCRIPTDIR/hci.profile
#
echo
echo ### Starting Cycle Script ###
echo
#
#
# echo
# echo ### Executing $SCRIPTDIR/os.start ###
# echo
# $SCRIPTDIR/os.start
#
# Start HCI components
#
echo
echo “### Performing cycle actions for root $ASE_HCI_ROOT ###”
echo
SITE_LIST=”clinical”
for site in $SITE_LIST; do
echo SITE:$site
# Setroot to the proper root/site
setroot $HACMP_HCI_ROOT $site
plist=`grep process $HACMP_HCI_ROOT/$site/NetConfig | awk ‘{print $2}’`
#plist=`eval echo $”HACMP_HCI_PROCESSES_$site”`
for pname in $plist; do
if [ “$pname” = “transcription” ] ; then
echo “### Skipped cycle on ‘transcription'”
else
echo “### Do cycle on $pname ###”
hcicmd -p $pname -c ‘. output_cycle’
fi
done
done
#
echo
echo “### HCI Cycle script complete ###”
echo
#
exit 0