So this is a little bit tricky due to the variation in receipt formats that you encounter.
I made some progress with the following rule:
Contents : Contain Match : NUMERICAL AMOUNT (match 1st occurrence from the End)
Where NUMERICAL AMOUNT is a Custom Matcher defined as 'Number.Number'.
I tried this for multiple scanned receipts, but the results really varied - only if the highest amount (the total) was the very last number on the receipt would this work, otherwise I got the taxable amount, change required, etc.
Using the command line to write a script isn't much easier as searching for a specific pattern is hard. There's a Regular Expression for decimal numbers at
http://www.regular-expressions.info/floatingpoint.html which may give you some leads.
Ultimately, I think you're looking for a feature in Hazel along the lines of 'Match the LARGEST occurrence'