title: Filemaker PHP API newPerformScriptCommand
body: <p>I have a question regarding the filemaker 12 php api.</p>
  
  <p>I'm trying to run a script which sets a field which in turn determines which records are shown on the filemaker layout.  It appears as though no matter what parameter I send into the script the field is set to a default value of 1.</p>
  
  <p>The script runs correctly in filemaker and I also tried hardcoding a different value in the filemaker script and that also worked as excepted.  </p>
  
  <p>I new to filemaker, so I'm mystified as to why calling the script from php doesn't work the same as calling it from filemaker.</p>
  
  <p>This is my php code:</p>
  
  <pre><code>$newPerformScript = $fm-&gt;newPerformScriptCommand($layout_name, $script_name,  $parameter);
  $result = $newPerformScript-&gt;execute();
  
  $result_record = $result-&gt;getFirstRecord();
  
  //The data I'm retrieving is in this related set
  $related_set =&amp; $result_record-&gt;getRelatedSet($related_set_name);
  </code></pre>
  
  <p>Any help that can be provided would be appreciated.</p>