Add a Start-Transcript statement as the first executable line in your script and a Stop-Transcript as the last executable line.
Use -Path to specify a file name to some folder on your C: drive.
Make sure that your .PS1 script file is on the C: drive. The task scheduler does a user impersonation and not a full desktop logon so mapped drives may not be available.
Review the transcript log file for errors.