Hello
Thank you for your question and reaching out.
Please enable GPO \ Computer \ Administrative Templates \ Windows Components \ Windows Powershell
Enable Powershell Script Block Logging
Enable Transcripts
Check Event Viewer: Applications and Services Logs \ Microsoft \ Windows \ Powershell \ Operational
Read Event Viewer and Transcripts
--If the reply is helpful, please Upvote and Accept as answer--