Source found at https://www.elevenforum.com/t/collecting-system-information-using-powershell-script.32808/