NOTE : Run as Local System User.
PARAMETERS:
1. Change the parameter of the variable taskname to whatever name you want to search in the list of sheduled tasks.
For example:
if you want to search whether a scheduled task with a name 'google' exists then you can give the parameter of the variable taskname as google.
if a scheduled task with a name "chrome google' exists and you give the parameter as Goog or oogle like that, the alert will show the scheduled task 'chrome google' and its status as result.