I use a PS script to create a list. Instead of a scheduled task, I wondered if I can put a link or a button on a sharepoint page, that when you click on it, it runs a PS Script on the SharePoint server (with Administrator privilege).
I saw this plugin that allows us to run PS script within a workflow. This is a cool thing. But I prefer running the script whenever I want (or my users want).
Do you have a good reference for this ? I saw this one. But not sure about what I should Googled.
NEW EDIT :
Hey, I'm back.
I manage to create a empty projet thanks to this.
So now, from my workstation (not SP server), I'm able to use PS script or commands. I also manage to use a dropdown list and select which script I want to execute.
I can't find how to add this custom application on my SP site (I have a aspx page, and aspx.cs). Well a kind of WebApplication if I'm right.