I am trying to call a powershell script from HTML Application [HTA] as :
Set WshShell = CreateObject(\"WScript.Shell\") Set retVal = WshShell.Exec(\"powersh
This works for me:
test.ps1:
(Get-Process).Count | Out-File c:\temp\output.txt -Encoding ascii
test.hta:
HTA Test