Resolution:
- Normally this error comes when the path was not found for Powershell in Environment variable which in turn caused the error in workflow execution.
- After setting the path in Environment Variable In PATH, the workflow works perfectly fine.