scripting – the API does not respond

I'm looking at the wolframscript examples to learn their capabilities and syntax. In one of the examples, the following API is considered.

CloudDeploy[
    APIFunction[
        {"city"->"City"},
        (
            weather=WeatherForecastData[#city,DateObject[], UnitSystem -> "Imperial"]// DeleteMissing // Normal;
StringRiffle[ToString/@weather,"n"]
        ) &,
ResponseForm[#,"WL",{"Result"}]Y
],
Permissions -> "Public"
]

CloudObject[“https://www.wolframcloud.com/objects/xxx”]

Following the example, I implemented the previous API and then tried to call it using the following wolframscript syntax.

wolframscript -api xxx -cloud -args city = Champaign

But he is not giving me back anything. Can someone verify if he is responding for them? Maybe the syntax is different now since the tutorials are old.