$ 0 0 From where do you run the script ? From the PowerCLI prompt ? Or from an editor ?Did you try restarting the prompt/editor ?