Hello Anjani,
I had the same issue and the solution I came up with was to create a VBA script and call it:
Excel_ProtectSheet.xaml (6.7 KB)
ProtectSheet.txt (123 Bytes)
Unfortunately the .vbs filetype was not allowed to be uploaded, so change the .txt to .vbs and you should be good to go.