Cmdlets for WooCommerce

Build 20.0.7587

Invoke-WooCommerce Cmdlet

Parameters   Output Objects  

Searches and updates WooCommerce data.

Syntax

Invoke-WooCommerce [parameters]

Remarks

The Invoke-WooCommerce cmdlet allows you to use SQL statements to execute any SQL statement directly. Below is the syntax for a parameterized query:

$query = Invoke-WooCommerce -Connection $connection -Query 'SELECT * FROM Orders WHERE ParentId=@ParentId' -Params @{'@ParentId'='3'}
This cmdlet is also useful for executing stored procedures. Use the EXEC keyword to call a stored procedure:
$query = Invoke-WooCommerce -Connection $connection -Query 'EXEC RunSystemStatusTool Id = @Id' -Params @{"clear_transients"}

Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 20.0.7587