This post gives you a quick suggestion if you Windows Server Task Schedule running PowerShell stuck at the Running status and does not return to Ready status.
When you configure the Action in your Task Schedule. Do not, I repeat, DO NOT put your PowerScirpt script in Program/Script. In Program/Script put in PowerShell.exe. Put your script under the Add argument (optional) that should resolve your issue,