Hi Narayanan,
Thanks for sharing the details.
In the LDK command line Envelope, you would have to create a project first and specify the Custom Protection Key Login Scope (you need the HASP ID) as shared above. Then, you can use the saved project file to protect the program.
In order to understand your requirement in detail and may suggest some alternate, please reach us via Gemalto Support Portal https://supportportal.gemalto.com/csm/ or email technical.support@gemalto.com. Please include your distributor in further conversation.
Thank You,
Gaurav Bhanot