saltstack/salt — pull request #4609 by UtahDave (2013-04-25 18:02:11+00:00)
Title: Fix cmd.script on Windows.

Fixes #2972

Was previously creating a temp file on Windows, which couldn't be executed.
Just cache the file and run it when on Windows.