I found the issue, and I discover I missing a “vendor” folder in my root of the plugin and inside composer.json i missing a auto-loader of classes.
So what there fix my issue is update my composer.json file and then run a composer install command after inside my plugin folder.
{
...
"require": {
"php": ">=7.4",
"guzzlehttp/guzzle": "^7.0"
},
"autoload": {
"psr-4": {
"WMS\\": "src"
}
}
}
So my CLI code work as default, its was a configuration error from my side.