We are going to be creating a rendering component. It will be a very simple component, you will have an idea how everything works, and then you will go ahead and create something more complex.
SiteCore Power Shell Extension Web API
This Tutorial will allow you to create a custom script that you can execute from the browser URL.