I'm not sure how hpacucli runs under Windows. All of my servers are RHEL. In my script I use:
# Determined the slot number previously and set that to SLOT hpacucli ctrl slot=${SLOT} pd all show detail | \ grep -i -P '.*(physicaldrive|firmware|status|drive type|size|model).*' > /var/tmp/hpdisks
You might be able to use findstr under Windows. Not sure of your exact problem. Could you give a little more details?