Command Line PHP Script Dying ...

I have developed a script that I want to automate and it is dying with the MSSQL version of ezSQL. Here's the funny thing: the script works if I access it through the browser, but as soon as I call it from the command line it dies.

My command line call is something like:

c:\webserver\php\php.exe -q c:\documentRoot\includes\auto_functions.php

The line of PHP code is like:
$my_db = new mssql_db('user','pass','db','host');
Note: I changed the object name from db to mssql_db because I have two database objects running in this application.
Any thoughts?

Note: the MySQL connection works fine, it is the MSSQL connection that dies.

Thanks!
Sean