That's because the module for Windows Azure wasn't loaded. Try creating a script file (vm.ps1) with the following:
Import-Module "C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1"
Get-AzureVM
And then run it like this (assuming you saved it on your C: drive):
powershell.exe C:\vm.ps1