Windows Batch File (WMI) - taskkill process based on memory usage

Here's the command that I eventually used:

PowerShell -Command "get-process | ? {$_.WorkingSet64 -gt 10000000000 -AND ($_.name -like 'java' -OR $_.name -like 'iexplore')} | foreach {kill -id $_.Id -force}"

It uses powershell to kill all processes named either java or iexplore if they exceed 1GB of RAM usage.