I have a script that's using PowerShell's Register-ObjectEvent to watch a folder for changes. Since the Register-ObjectEvent only works while the PowerShell session is active, I need to keep a PowerShell window open - which I'd rather not do.
I'd like to know if there is there a way to run Register-ObjectEvent in the background somehow?