I am looking for a way to programmatically determine if PowerShell wishes to make changes using the whatif flag. I have a set of scripts that implement the ShouldProcess, wh