I have written this shell script to query the windows search index.
$sql = "SELECT System.ItemName, System.ItemPathDisplay, SYSTEM.FileOwner, System.ItemTyp