my ($UUID) = system ("get-wmiobject Win32_ComputerSystemProduct | Select-Object -ExpandProperty UUID"); # 'get-wmiobject' is not recognized as an internal or external command my ($UUID) = system ('get-wmiobject Win32_ComputerSystemProduct | Select-Object -ExpandProperty UUID'); my ($UUID) = `get-wmiobject Win32_ComputerSystemProduct | Select-Object -ExpandProperty UUID`; # same error as above, `` works perfectly fine on macOS