I can not find what is actually the problem from my limited knowledge everything looks correct
Here is the code I am using:
<html>
<head>
<title>Application Executer</title>
<HTA:APPLICATION ID="oMyApp"
APPLICATIONNAME="Application Executer"
BORDER="yes"
CAPTION="no"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
SYSMENU="yes"
SCROLL="yes"
WINDOWSTATE="normal">
<script type="text/javascript" language="javascript">
function RunFile() {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run("C:Users\User\OneDrive\Desktop\Apps\Clean_Teams.ps1", 1, false);
}
</script>
</head>
<body>
<br>
<br>
<center>
<input type="button" value="Clean Teams" onclick="RunFile();"/>
<br>
<br>
<input type="button" value="Clean Chrome" onclick="RunFile();"/>
<br>
<br>
<input type="button" value="Clean Edge" onclick="RunFile();"/>
</center>
</body>
</html>

As mentioned in the comments, you need to run
powershell.exewith the appropriate parameters. Below is an example HTA for launching PowerShell scripts that demonstrates one way to set up the correct command line. Also note thatX-UA-Compatibleis set toIE=9. Without any declaration, the HTA will default toIE=5mode.