Tan sencillo como esto:
$location = "North Europe"
Get-AzureRmVMImageOffer -Location $location -PublisherName "MicrosoftSharePoint"
Get-AzureRmVMImageSku -Location $location -PublisherName "MicrosoftSharePoint" -Offer "MicrosoftSharePointServer"
3 lineas, después lo metemos en el script y ya estaria. Ire poniendo mas 😉