AutoLock-Shutdown is a project mainly written in AUTOIT and BATCHFILE, it's free.
AutoIt3 Script that locks the screen or shuts down the computer at a desired time. Made out of a personal need for such a tool.
/*
*/