Arabic-style script with initial, medial etc. forms

Shaping engines will automatically perform init, medi, and fina features if it detects Arabic and other scripts that use these features.

Since you have invented your own “Script”, it won’t automatically work. You need to add custom OpenType layout features.

This forum topic is a good start:
How to make a contextual cursive font