title: How to pass parameter while executing command in Groovy Script
body: <pre><code>command = ["C:/Users/Desktop/try.bat"] 
  def command1=command    
  def cmd = command1.execute()    
  cmd.waitFor()
  </code></pre>
  
  <p>This is my code. But I need to pass 4 arguments to <code>try.bat</code>. Out of these one argument is optional. How to handle it?</p>