To pass data to the script, use the %NODEARGS% text in the Command Line Arguments parameter of the Scripting Node. The Scripting Node converts the %NODEARGS% text to the full path in a temporary folder in the Proteome Discoverer scratch folder, which contains a node_args.json file.

This node_args.json file contains information about:

Example node_args.json file
Example node_args.json file