Question: powershell exe is not recognized as the name of a cmdlet?
Answer: The term 'powershell.exe' is not recognized as the name of a cmdlet in VSTS Task. ... Check the spelling of the name, or if a path was included, verify that the path is correct and try again. " while executing PS task in VSTS .