The only thing you need to be administrator for is to run "Set-ExecutionPolicy -Scope LocalMachine"
Then again all cool kids now do curl | sh anyway.
Every so often HN rolls their eyes at all these idiots who do "curl | sh". How is doing so any different from downloading an installer over https and running it? Really, if installing software is what we're doing, isn't running it part of the objective?
Or, in short, why is "curl | sh" frowned upon and why are alternatives better?
You can also check that an installer isn't corrupted sfter downloading and before running, classically withe the md5 hash.
And if one gets a random .rpm/.deb package, then it should be installed only if the digital signature is valid.
(This can be overridden by policies though.)
Also, in windows 10 the default ExecutionPolicy changed from Windows 7 so by default you can run powershell scripts even without using -executionpolicy bypass.