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.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityIs 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: