If you use an IDE that supports Ant, like PHPEclipse, you can simply add the following Ant script to your project:

<?xml version="1.0"?>
<project name="YOUR_PROJECT" default="test">

	<property name="scriptsDir" value="PATH_TO_SCRIPTS_DIR" />

	<target name="test">
		<exec dir="${scriptsDir}" executable="php">
			<arg line="test.php" />
		</exec>
	</target>
</project>

Update (2006-01-10): This script is no longer useful because scripts/test.php has been removed from CakePHP.