How to execute .ps1 files in Windows Azure Powershell
- create a file with notepad and name it test.ps1
- put your powershell commands in the file, e.g. Start-AzureVM -Name 'myvm' -ServiceName 'myservice'
- in powershell prompt, type .\test.ps1 and hit enter to run
Alternatively, in powershell ISE load test.ps1 and hit F5 to run. You can set breakpoints, step through line-by-line and check variable contents. You might be better off taking this route.