Windows 10 Run Task On Any Domain User Login and then Delete Task

Solution 1:

Does it have to be a scheduled task? Group Policy can be configured for one-and-done type changes, and joining to a domain means that Group Policy will apply.

Taking that a step further, Group Policy can create Scheduled Tasks, too.