defined('YII_DEBUG') or define('YII_DEBUG',true);
// including Yii
require_once('path/to/yii/framework/yii.php');
// we'll use a separate config file
$configFile='path/to/config/cron.php';
// creating and running console application
Yii::createConsoleApplication($configFile)->run();
C:\Users\myName>php C:\xampp\htdocs\myProject\protected\yiic test
the yiic is come with yii framework and generated by it ,you can find it in protected dir . the original one is under the framework dir you can check it (framework/yiic ,yiic.bat ,yiic.php )