Maxima's commandline aviabilities



Hello.

I have a such task - I need to wite PHP-script, which would compare
two mathematics formulas.
I have read a lot of about your product and decided to use Maxima's
function ratsimp in such way as
         ratsimp(formula1 / formula2)
and if it returns '1', then our formulas are equivalent.

Well, the main problem is:
1. What parameters I can use with maxima.exe? (e.g. "C:/maxima.exe
-help")
2. May I open file with formulas, and after executing write result in
another file?

P.S. I use Windows, so I meaned Windows console commands.
P.P.S. Sorry for my bad English...

-- 

 Best regards,
 Shulepin Eugene                          mailto:shuler at 1adw.com