Restore WMI query via subprocess due to memory leak

Revert + changes of commit 07e725041a61322856dc7c40e2227a2c765e2048.