User activity in a computer

Hello. I’m new to Powershell and I was wondering if I can write a script that will monitor everything that a user does in a machine, for example, applications he used, at what time, etc., like a “spy” kind of software. If so, which cmdlt would you recommend to use?

Thanks a lot!

It’d be FAR more complex than just a single cmdlet, and it’s not something PowerShell is well suited for.