Is there a way to invoke and execute a .ps1 file using REST/JSOM?
I am hoping to deploy a SharePoint Hosted App that runs a powershell script on the server.
Is there a way to invoke and execute a .ps1 file using REST/JSOM?
I am hoping to deploy a SharePoint Hosted App that runs a powershell script on the server.
Yes, You can call your executable powershell scripts *.ps1 using REST api as HTTP GET is supported by all programming language (javascript in your case).
This msdn blog will help you: