Calling scripts in Windows: how does it work?