Launch script on server side


I'm trying to launch a powershell script on the SM server from web client. The idea is that, on a specific scenario, SM automatically launch a script that perform some actions on the server, like crestart a service or something like that.

I've tried with "us.launch.external" but it launchs everything on client side, not server's.

How can I acomplish this? Is it possible to launch an application from the web client on the server?

Thank you in advance!