i just started with Powershell and have already a problem. I am using the API from OpenWeathermap (https://openweathermap.org/) to create something like a weather-bot.
I am using this function from the API:
Write-WeatherCurrent -City $place -ApiKey $ApiKey -Units metric
Where the Output something like this (if I fill the Variables): 10.2°C (☁️ few clouds) in london
So I want this Output to save in a File. I already tried with the Commands Out-File and >>. But it only outputs in the Terminal and the File is empty. I am not sure, but is it because of "Write"-WeatherCurrent?
I would be happy if anybody could help me :D
Thank you