I'm able to get the amount of processors with:
$EnvNUMBER_OF_PROCESSORS = "%NUMBER_OF_PROCESSORS%"
? "cpu = " + $EnvNUMBER_OF_PROCESSORS
..but the most important information that i need (hardware serial number) seems to be available only if i use WMI. If anyone knows any other way to get that information i would really appreciate it.