I noticed that there is no way to filter through principal components when looking at only a score plot in JMP. However, when using the 'summary' function in JMP there is a filter for looking through these principal components (please see highlighted in photo).
I was looking through the script and it seems as if the score plot is simply using the the summary plot script, but removing for all the other components except for the score plot.
If you are trying to stay within the PCA platform you could use the Summary Plots section and just hide the other items. One potential downside to this method is any customization the user made to their instance of JMP could lead to unwanted effects on your report. For example, the user might have the loading matrix automatically open when they run a PCA.
Here is one method to hide the other elements:
names default to here(1);
dt = Open("$Sample_data/iris.jmp");
pc = dt << Principal Components(
Y( :Sepal length, :Sepal width, :Petal length, :Petal width ),
Estimation Method( "Default" ),
//Hide the unwanted elements - there is a lot to take in here, see
// pc << Get XML and use web searches for xpath to learn more.
(pc << XPath( "//TableBox" )) << Visibility(Collapse);
(pc << XPath( "//BorderBox[PictureBox]" )) << Visibility(Collapse);
(pc << XPath( "//BorderBox[CheckBoxBox]" )) << Visibility(Collapse);
Another option might be to export the scores as columns and then generate the plot using graph builder and either column switchers or a couple combo boxes with a script to delete and recreate the chart.