Call CPU Profiler tool from a script

Good day.

Is it possible to call the /tool profile from inside a script, then use the output as variables?

I am able to use the wireless monitoring tool, but I cannot figure out the syntax to use the profile tool:

  :local wlanFreq 0;
  :local noiseFloor 0;
  /interface wireless monitor $wlan once do={
   :set wlanFreq $frequency
   :set noiseFloor $"noise-floor"
  }

Any ideas?

At this point it is not possible directly form RouterOS scripting language.