I have virtually no idea, why anyone would want to turn an .app folder into an .ipa file. And consequently no knowledge of how to do so.
All apps you have on your iPad are already saved as .ipa on the computer after sync. Why not just use those? I don't see any legal reason, for this scenario, but I may be wrong.