title: Powershell scheduled job will not start
body: <p>The new scheduled jobs in powershell 3 look fantastic, but to my horror I am unable to get them to work.</p>
  
  <pre><code>Register-ScheduledJob -FilePath V:\scripts\testJob.ps1 -Name Test
  $t = New-JobTrigger -At 6PM -Once
  Add-JobTrigger -Trigger $t -Name Test
  </code></pre>
  
  <p>I never see any errors or anything but the script doesn't execute. If I open up task scheduler I can see the job and it says it "ran". But in History there is an 'Action Completed' with</p>
  
  <pre><code>Task Scheduler successfully completed task "\Microsoft\Windows\PowerShell\ScheduledJobs\Test" , instance "{a117256e-c3f2-42a7-a290-f21aeb6b2260}" , action "StartPowerShellJob" with return code 1.
  </code></pre>
  
  <p>I've tried futzing with the scheduled task in task scheduler but haven't gotten anywhere. Does anyone have any ideas?</p>
  
  <p>The script just looks like this:</p>
  
  <pre><code>$path = "C:\temp\jobbit.log"
  Get-Date | Out-File -FilePath $path -Append
  </code></pre>