1. I currently added "," at the end of a command since i cannot get the {NEWLINE} to work.
How can I make this command work:
Set text [numOfLines] to '{TXTOCCURRENCES:lineEndMark:importedFile}'
Where I set lineEndMark to '{NEWLINE}'
If your file uses line endings that match Environment.Newline (which should be "\r\n" for Windows), that should already work.
2. How cat I, as a user see the new command which were created during the new import process apart from showing them int the log.
This process does not create new commands, it only applies changes to commands that have been previously set up to use a variable hotkey.
As the hotkeys are specified, presumably by the user, in the file you're importing from, I'm not sure what information you want to display.
3. Can/Should I save these hotkeys and if yes how?
You can save the values of the variables using the "Save value to profile" option.
To retrieve that data you will need to set each of those variables using the "Retrieve saved value" option, and use the "Refresh Variable Command Hotkeys" to enable the hotkeys.