enable usage with CLI interface

Added option to use the status.php with console.php via CLI