Hello Aviral,
Keep in mind that using the C-Script block is non-trivial and requires some deeper knowledge of PLECS. Try using PLECS blocks to create the required function first.
To start using the C-Script block, have a look at the C-Script chapter in the documentation and try some of the examples.
Best Regards
Falk