Yes, they are universal. Below is ad-hoc example of script that reads DHCP leases from Mikrotik router and prints IP address of specific node, if found:
for(line : $node->executeSSHCommand("/ip dhcp-server/lease/print"))
{
if (line->contains("raspberrypi") and line ~= '^\s?[0-9]+\s+([0-9.]+).*')
println("address:", $1);
}
Best regards,
Victor