You may get this error message in Visual Studio Code terminal after installing Vue CLI.
Step 1: Navigate to the file location
Navigate to the file location mentioned in the error message. In my case it was:
Step 2: Rename File
Now rename vue.ps1 file to anything like vue.ps1_renamed.
This should solve the problem.