I installed the Google-Cloud SDK using the install here and selecting the "install for all users" option and checking the box for the powershell tools.
I now have a weird situation whereby if I run PowerShell as admin then run the command:
gcloud --version
I get the expected output:
Google Cloud SDK 213.0.0
beta 2018.07.16
bq 2.0.34
core 2018.08.17
gsutil 4.33
but if I run powershell as a non-elevated user then run the same command I get the pop-up window asking me which application I want to use to open a file, then having selected notepad, for example, windows just opens notepad with a script file starting:
#!/bin/sh
#
# Copyright 2013 Google Inc. All Rights Reserved.
#
# <cloud-sdk-sh-preamble>
#
# CLOUDSDK_ROOT_DIR
... etc...
How can I fix this to allow me to run gcloud
commands as a non-elevated user?