So initially you have to apply to Ministry of Industry, Commerce and Tourism ("MOICT")
and they transfer the application to Nationality, Passport, Residence Affairs ("NPRA")
in Bahrain who check whether you are having any criminal history, etc.
If you have a clean record, then most probably you will get the clearance to open an IT company in Bahrain.
Once it is done MOIC review the name, etc. to see the names you submitted are not same like existing one or infringes someone's registered trademark. They can also ask to fix spelling, submit clear passport copy if they need to. If all is okay, you get a Commercial Registration ("CR") without license.
CR without license means you have a name, registration number, etc. allotted to you but you need to take licenses to practice the business.