That message means that you're script doesn't find the main class of PHPDocX. You need to check your files.
About CLI mode this page has a lot of information:
http://php.net/manual/en/features.commandline.php
Regards.
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it now