How to send status of scheduled script via mail?
<p>I have created a simple PowerShell script for log file move from source to destination with log_present date. This report can be captured through mail notification?</p>

<pre><code>Move-Item C:\Users\hxsabe\Desktop\Test\Success_Login.txt H:\Downloads\test

Rename-Item H:\Downloads\test\Success_Login.txt "Success_Login_$(Get-Date -Format "ddMMyyyy").txt"
</code></pre>

<p>This script has to be scheduled in Windows scheduled task after completion of this script email notification is required by success/failed task.</p>