title: Powershell V3 new ScheduleJob and ScheduleTask cmdlets
body: <p>I'm currently learning all about the new cmd-lets in powershell version 3 and attempting to use some of them.</p>
  
  <p>I'm in need to schedule different things and I'm trying to learn the new new-scheduledtask and new-scheduledjob cmdlets but I'm having a little difficulty. </p>
  
  <p>I was wondering if anyone can help me discover what would be the simplest way to schedule a service restart (apache in this case), via a script?  the script would schedule a restart when a certain condition is met ( basically when I need to restart to add new apache vhosts).  </p>
  
  <p>Any ideas?  Currently I'm leaning towards creating a scriptblock that will do it and then registering a job and then a job trigger for the time of the day I want to restart which would be that night that the script schedules the restart.  </p>
  
  <p>Thanks!</p>