I create a scheduled task (so I'm assuming its via command line-ish) and in the "Run" area of the scheduled task I put something like the following:
C:\path\to\php.exe -f "C:\path\to\my.php"
When its running it does open a command window so I think my assumption is not too far off.