I am using automation tool for this task but it did not create the .pak file specified. I am attaching a snip of the code. I am using UAssetActionUtility as base class for this task.
I finally resolved the issue!