Replaced the WMI calls with one call and use of a variable
There were multiple logical errors in if statements. The if logic allowed both empty and non-empty values, effectively never reaching the else condition
Switched to an easier method to check for empty string in if statements
Corrected logical error in function CheckUtcCsp. It would report Passed if registry value did not exist.