Hi Muhammad,
just use the variable you stored the Client object to. You can see how to init the Client in this post: https://florianbrinkmann.com/en/creating-woocommerce-product-rest-api-4520/
So if you store that to a $woocommerce variable in your function, you can use $woocommerce->post().