Help needed: turning wifi radio on and off with script

I need some help. I would like to switch the wifi radio of my Asus AC66U router from my Hassio (0.84.6) runnung on RPi3.

I can connect using PuTTY with ssh from my desktop pc. Using the wl -i eth1 down command the radio turns off and wl -i eth1 up turns it on.

But I don’t know how to create a working script or I don’t know how to use ssh (telnet) under hassio at all.

So please help me. Thank you in advance for any help you can provide.

Does anyone have any idea?

ssh user@ip_address “wl -i eth1 down”

Thanks. And how can I run it from Hassio?

Edit: and one more question: how can I store the password?

And the answer is:

I know this is a ‘late’ answer, but I better leave this here:
For anyone who is not familiar with SSH connection from HA to a router, here’s a good walkthrough: