Is there a way to hook into an internal PowerShell function event? Specifically looking to add code to the Copy-Item function when the call is started, finishes or errors out. I know I can just override the function but I was trying to avoid rewriting that code.
How would you even get what events are available for Copy-Item?