How to create a custom function out of script (See the answer for more)

I want to know if there’s a way to create custom function, like a script plug-in:

I’ll show you an explample for the result i want:
using UnityEngine.plugin_name

Calculate.position.add.x = value; 

will execute :

 gameObject.transform.position = new Vector3(gameObject.transform.position.x + value, ... , ...);

i don’t no if you understand, if not, just tell my how i can make my question better.
Sorry for short question and bad english…

Hey if you mean extensions then here is an example on another post of mine just scroll down:

Extensions can be used to “extend” existing functionality.