How can I populate an Excel cell with information from a command prompt output?

I know this is a fool’s errand, and probably a bad idea, but just curious. Suppose I have a time tracking spreadsheet. When I open the spreadsheet, I put the time I started up Windows in a certain cell as my start time. If I forget to open my spreadsheet when I “clock in”, I open a command prompt window and invoke the query user command:

Microsoft Windows [Version 10.0.26100.6584]
(c) Microsoft Corporation. All rights reserved.

C:Usersmstewart>query user
 USERNAME              SESSIONNAME        ID  STATE   IDLE TIME  LOGON TIME
>mstewart              console             3  Active      12:33  10/17/2025 10:06

C:Usersmstewart>

I then copy the LOGON TIME time of day portion into my spreadsheet. Is it possible to automate that via VBA?

I checked this other Super User question and this one as well but those don’t apply.