1) Create a task in Task Manager and schedule it "At logoff/shutdown".
To run the task - launch "Logoff" or "Shutdown".
Note: this type of schedule does not work on Home version of Windows
2) Create a task in Task Manager and on Schedule page - enable the option 'Shutdown after wiping':
3) Run a wiping command from right-click menu and configure it to shutdown after completion.