<textarea id=output></textarea>
<script language=JScript>
var WshShell = new ActiveXObject('WScript.Shell');
var WshExec = WshShell.Exec("cmd /c 2>&1 cacls D:\Folder /E /G Domain\User1:C Domain\User2:R");
document.getElementById('output').value = WshExec.StdOut.ReadAll();
</script>
set /p
set /?