How to test a Server Side plugin?

What I want to know, is that how can I execute the pre-request script that return the auth header and use it for the api call, I need to know exactly how to apply the pre-request script, in the plugin editor.