If you have ever used PowerShell to query a .xlsx file, run an SSIS package against a CSV, or used Excel Power Query to connect to a DB2 database, you have likely relied on this engine.
$connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Data\SalesReport.xlsx;Extended Properties='Excel 12.0 Xml;HDR=YES';" $query = "SELECT [Region], SUM([Sales]) as TotalSales FROM [Sheet1$] WHERE [Sales] > 1000 GROUP BY [Region]"
$conn = New-Object System.Data.OleDb.OleDbConnection($connectionString) $conn.Open() $cmd = New-Object System.Data.OleDb.OleDbCommand($query, $conn) $reader = $cmd.ExecuteReader()