Imagine there is a file
If any change is detected in that file, it is automatically replaced with the file
B:\example\file.txt, and without a file replacement dialog showing up, nor a UAC prompt appearing each time, everything just happens in the background. If no change is detected, nothing is done, the script continues to check for changes in the background, while hopefully consuming very little system resources.
I could do:
Copy-Item "A:\Example\file.txt" "B:\Example\file.txt" -Force
But this isn't recurring or running in the background all the time, and I am not sure if it can skip UAC prompts or file replacement dialogs automatically or not.