Editor: Nosleep (source) is a command line tool that disables sleep or hibernate, runs a Batch file or program and then enables sleep or hibernate again. It will run on any recent version of Windows - I use it from Task Scheduler to launch my Monster batch file of overnight tasks.
It's a simple Little app - it just calls SetThreadExecutionState() before and after launching The Target batch file. The trick with SetThreadExecutionState is that the new state doesn't take the first time you call the function. Calling it twice has the desired effect.