There is no way to create the IAK file pragmatically. It can only be created from MAX.
If you want to get the current configuration from the FP, you can add it to a new project and then save the project. The directory where you saved your project will contain the configuration of the FP in an IAK file.
Note that all of this means youmust use the IAK file to do configuration of the FP. Is there a reason why you do not want to use the IAK file?