I'm using cache cleaner and works fine.
But I need also to clean the cache from a shell script (programmatically) and I was wondering If I can use this kind of command :
No, Cache Cleaner doesn't support executing shell scripts.
It can empty specific folders, database tables and certain 3rd party and server cache. See the docs:
docs4.regularlabs.com/cachecleaner