Access to $defconfWifiPassword from run after reset script

I can’t seem to be able to access the passwords from the sticker on the L41G-2axD in my own “run after reset” script (/system reset-configuration no-defaults=yes skip-backup=yes run-after-reset=myscript.rsc). The default config script uses the $defconfPassword and $defconfWifiPassword variables, but they don’t exist in my own script. Is it intentional or a bug? Is netinstall (replace defconfig script with my own) the only way?

You can read it only on permanent netinstall scripts, not on run-after-reset.