-- HikaShop version -- : 4.4.5
-- Joomla version -- : 3.10.5
-- PHP version -- : 7.4.25
-- Browser(s) name and version -- :  Firefox Developer 98.0b4
Hi,
I created a CLI CRON script to send orders to the client ERP that is working fine for now.
My client wants now to mark all exported orders as shipped and notify customers.
I followed the solution on this thread : 
	www.hikashop.com/forum/development/88659...fy-the-customer.html
It works fine in the web application but doesn't in a CLI script because the order class requires JApplication to trigger plugin events.
My terminal send me back this error message "Error: Failed to start application: Failed to start application"
Here is my code :
		if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
		if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true;
		foreach ($ids as $id) // Order IDs
		{
			$orderClass = hikashop_get('class.order');
			$order = new stdClass();
			$order->order_id = (int)$id;
			$order->order_status = 'shipped';
			$order->history = new stdClass();
			$order->history->history_notified = 1;
			$order->history->history_reason = 'CRON update';
			$order->history->history_type = 'modification';
			$orderClass->save($order);
		}
Is there another way to do that so that I can use it in a CLI script ?
Thanks in forward for your help,
Manu @Agerix