I'm trying to automate some Cpk recording. I have a data set consisting of different product runs producing 1-8 samples each. I can obtain Cpk from the control chart platform but I'd like to automate the collection of that data. How would I calculate this with moving range as my parameter for sigma?