Google weather

I tried to use a sh functions with this code;

am start -a android.intent.action.VIEW -d dynact://velour/weather/ProxyActivity com.google.android.googlequicksearchbox/com.google.android.apps.gsa.velour.DynamicActivityTrampoline
but when I touch nothing happened. It works if I put the code in a terminal (I used Termux)
Thanks

I'm guessing you are using tasker to run the shell command. If so, you need to enable "Use Root" to get the script working.