Alright I figured it out finally. I can just run the script via command prompt. Just had set the include path properly.
To those curious about how to use command prompt:
c:\xampp\htdocs\php\php.exe c:\xampp\htdocs\test\test1\test.php
(if you use include or require in your scripts, use ini_set to set the include path, I had to at least)
ini_set('include_path', 'c:/xampp/htdocs/test/test1');