Update task.rb to use :onlogon and :onidle

According to Microsoft, frequency needs to be ONLOGON or ONIDLE without underscores.