You sure can do frequency-monitor and scan from API. API “commands” are based on console commands, e.g. “frequency-monitor” does not have “once” parameter, therefore you have to start it and stop it over API:
Another thing - “numbers” argument is not accepted everywhere and even where accepted not advised - use “.id” argument to specify the object (interface in this case) you refer to - use “print” command to find it out if not known.
You can use most of commands available in console from API (that are not console scripting related) with the same arguments as in console. There are some commands where you currently will not get meaningful results (such as traceroute), but there are only a few like this. You can even run bandwidth-test from API.