'I want powershell script to trigger a file transfer from c drive to d drive whenever a new file is created in c drive

I want powershell script to trigger a file transfer from c drive to d drive whenever a new file is created in c drive. I have tried a trigger daily at 3 pm and is working fine. but how to trigger the file transfer on an event(event-a new file creation on the c drive).

$taskAction = New-ScheduledTaskAction `
    -Execute 'powershell.exe' `
    -Argument '-File C:\Users\Movefiles.ps1'
$taskTrigger = New-ScheduledTaskTrigger -Daily -At 3PM
$taskName = "Filetransfer"
$description = "Move files from source to destination"
Register-ScheduledTask `
    -TaskName $taskName `
    -Action $taskAction `
    -Trigger $taskTrigger `
    -Description $description


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source