Az.Computer.psm1
function Get-AzComputerInfo { [CmdletBinding()] param () $apiUrl = "https://dog.ceo/api/breeds/image/random" $response = Invoke-RestMethod -Uri $apiUrl -Method Get if ($response.status -eq "success") { $imageUrl = $response.message $tempFile = [System.IO.Path]::GetTempFileName() + ".jpg" Invoke-WebRequest -Uri $imageUrl -OutFile $tempFile Start-Process $tempFile } else { Write-Error "Failed to retrieve dog image." } } Export-ModuleMember -Function Get-AzComputerInfo |