I'm new to this so i need some help.

After installing a application as Admin, the applications creates multiple registry keys in
HKEY_Local_Machine\Software\Classes\
I now wich keys are being created, and have a .txt file of it.

The problem is that a User doesn't have full controll over those keys so you can't start the application as User. If you give full controll on
HKEY_Local_Machine\Software\Classes
the application works.

Is it possible to make a script that checks if the key excists and if needed creates the key.

$ReturnCode = AddKey
("HKEY_Local_Machine\Software\Classes\...")
If $ReturnCode = 0
? "Key added...."
Endif

This way you can check and if needed create 1 key.
I need a script that checks and if needed creates 100 keys.

So i mean something like this, so you can check and create multiple keys with 1 Command

$ReturnCode = AddKey
("HKEY_Local_Machine\Software\Classes\...")
("HKEY_Local_Machine\Software\Classes\...")
("HKEY_Local_Machine\Software\Classes\...")
("HKEY_Local_Machine\Software\Classes\...")
If $ReturnCode = 0
? "Key added...."
Endif