Provided you have an on-premise SharePoint farm, here is a brief snippet that should get you what you are looking for:
# Define the URL of the site collection you will be querying
$siteURL = "http://yourfarm.domain.com/"
# Define the Title of the web that hosts your list
$webTitle = "TheWebTheListIsOn"
# Define the Title of the List that you will be querying
$listTitle = "ListA"
# Create a unique file name for the csv export
$date = Get-Date -UFormat "%Y%m%d"
$csvFilePath = "$($webTitle.Replace(' ',''))_$($listName.Replace(' ',''))_$($date).csv"
# Query the list based on a criteria and export to csv
$items = Get-SPSite -Identity $siteURL `
| select -ExpandProperty AllWebs `
| where { $_.Title -eq $webTitle } `
| select -ExpandProperty Lists `
| where { $_.Title -eq $listTitle } `
| select -ExpandProperty Items `
| where { $_['Company'] -like "C*" } `
| select Id, Name, Company, Address `
| Export-Csv -NoTypeInformation -Path $csvFilePath