Notice the sudo and terminal. You must enter a password in a terminal. In windows you just click twice.
Uh, oh, that means you're working on an admin account. If you are using a normal user account, you will be prompted to enter your admin credentials instead.
(You can also force this behaviour on administrator accounts. Search for the registry setting "ConsentPromptBehaviorAdmin")
Unless you are saying that those who type into the terminal will first |echo the script into a file, verify it, then run?