function get-havadurumu ($location) {
$Url = "https://wttr.in/$($Location)?format=%C\n%t\n%T\n"
$WeatherData = Invoke-RestMethod $Url
$WeatherData
}

Microsoft MVP (Cloud and Datacenter Management – PowerShell)
function get-havadurumu ($location) {
$Url = "https://wttr.in/$($Location)?format=%C\n%t\n%T\n"
$WeatherData = Invoke-RestMethod $Url
$WeatherData
}