I am using Microsoft Visual Studio 2008 Visual Basic, and am creating a custom PowerShell Cmdlet.

How do I detect if either the `-Verbose` or `-Debug` parameters are used?
I have tried `If Debug.IsPresent Then`, but that does not appear to work.