Maybe check this solution that works for turning on/off the Guest Network:
You may also try to put your SSH command into a .sh script and call that from the command line. In the past i made the experience that this works while the direct command sometimes does not work.