title: Scheduled task with parameter laravel
body: <p>in Laravel 5.6 i have a controller that invokes a command through a Process component.</p>
  
  <p>The command run fine, is about a compression of a folder with the name the user gives.</p>
  
  <pre><code>$command = 'tar -czvf '.$nameFile.' storage/images/';
  
  $process = new Process($command);
  $process-&gt;setTimeout(1800);
  $process-&gt;run();
  </code></pre>
  
  <p>I need to schedule that job 3 times a day. I saw task scheduling with file app/Console/Kernel.php; the problem is to execute the process with the file name the user gives.</p>
  
  <p>How can i programm a Schedule task in this situation?</p>
  
  <p>Thanks</p>