Here is a simple script that can be used to get the Cp/Cpk for the last 50 rows in your data table. It generates the same table that your Process Screening generated, but this time, with just the 2 variables you want, and just for the last 50 rows of data.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
dt << select where( Row() < N Rows( dt ) - 50 );
dt << hide and exclude;
ps = dt << Process Screening( Y( :NPN1, :PNP1 ), Control Chart Type( "Indiv and MR" ) );
newdt = ps << get data table;
dt << clear rowstates;
Jim