CGI is not going to help you here, CGI requires more then perl, it requires a webserver and you won't be installing that on your users IPAQ's!
I agree with Paul, build a custom app, you can even do it in VBScript probably and still run it in a webcontext, just locally.