I love the ability to run a scheduled task by right-clicking an event and selecting "Attach Task to This Event".
Is there a command-line method to Attach a task to a specific event?
It seems that you can use Powershell to achieve that and for more detailed information, please refer to the link below:
Attaching scripts or tasks to Windows event log entries using PowerShell and WMI
Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.
Would you like to participate?