For some reason, the logs are not recording the Date/Time and the component information in the logs. When i run as a normal user directly, the logs are getting recorded. But when i deploy the same script through SCCM, the columns against the Date/Time, Component are empty. Any specific settings need to be enabled or so ?
No, seems to be a bug. Update your toolkit.