How to write a specific script - C#