I am writing a program that needs to know whether or not it's in a virtual machine, a neat way I found was to check the system information in the cmd, however, I can't find a way to write in the cmd and read what the cmd replies.
I would like something that can write "WMIC COMPUTERSYSTEM GET MANUFACTURER" to the cmd and also check what the results are.