Added functions to create a windows task.