Task reminder with custom function

Task reminder with custom function

Hello!

I am trying to create a custom function to add a task.
With you guys helping, I could create a function but I could not set the reminder.
Anyone knows how to add a reminder? 

Thank you for your tips!