Notice below that there is no output line corresponding to ExecutablePath or CommandLine.
Comparing things to what I see in the WmiCodeCreator I'd guess (not sure) that it's TCC deciding not to print a line when there's no vaule for the property. That doesn't work well if I want to @EXECARRAY[WMIQUERY ...] and be confident about what each line in the array represents. If it is TCC doing that, could it be made to (perhaps optionally) print the line with with an empty value?[/code]
v:\> wmiquery . "Select CreationDate,Name,ExecutablePath,HandleCount,KernelModeTime,UserModeTime,ParentProcessId,WorkingSetSize,ThreadCount,CommandLine from Win32_process where ProcessId=3228" CreationDate = 20200114170420.157712-300 HandleCount = 96 KernelModeTime = 312500 Name = w32tmsvc.exe ParentProcessId = 828 ThreadCount = 3 UserModeTime = 156250 WorkingSetSize = 2985984