title: How I could run a scheduled task with powershell and schedule.service
body: <p>I'm using schtask for running a scheduled task in a Powershell 3 (Win7) :</p>
  
  <pre><code>$taskname = "task"
  schtasks /Run /Tn $taskname
  </code></pre>
  
  <p>Now, I'm trying to do the same thing with Schedule.service :</p>
  
  <pre><code>$ProductName ="task"
  $ScheduledTaskService=new-object -com("Schedule.Service") 
  $ScheduledTaskService.connect() 
  $ScheduledTaskToRun=$ScheduledTaskservice.GetFolder("\").GetTasks(0)|Where-Object{($_.Name -eq $ProductName)}
  </code></pre>
  
  <p>But at this point, I don't know what I need to do for running the task. This task is already configurated and need only to be launch </p>