Have not seen an answer yet but in thinking more about it I think you do the following:
Specify the parameters you want to pass in the newPerformScriptcommand along with the layout and script. Separate multiple parameters with the | character.
Within the FM script - use the get(scriptparameter) function to pull the parameters into the script.
This worked but the parameter came across as single string that needed to be parsed.
Very few developers that use PHP access this forum for assistance. You may have better luck if you join TechNet (membership is free) and post this question there.