Is that script file stored in the same folder as where you are located at the PowerCLI prompt ?
The prompt tells you, for example
PowerCLI D:\\Scripts>
Did you try to run the script as
PowerCLI D:\Scripts> ./script.ps1
Or if the script is stored in another folder, try giving the complete path
PowerCLI D:\Scripts> C:\Scripts\script.ps1