Azure Cloud Shell Trouble running ps1 Scripts
The example below is from Microsoft Docs. The trick is for the shell to be open in the location that the script is saved. This will only work if your script doesn't use libraries that are stored on your local device. You may also need to import any modules needed, e.g. AzureAD
# change to your cloud drive fileshare
cd $HOME\clouddrive
# run the script
.\helloworld.ps1
Hello World!