I want to run PowerShell command (any command) from SharePoint Script Editor.
Please let me know how can I achieve it?
I use the below script to lunch notepad, just to test it, and even it doesn't work:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
function LaunchApp() {
var shell = new ActiveXObject("WScript.shell");
shell.run("notepad.exe", 1, True);
};
</script>
<button type="button" id="btn" onclick=LaunchApp()>Run App</button>
Please help.