The Test-VisioSelectedShapes cmdlet returns $true if there are any selected shapes available in the active document.
Test-VisioSelectedShapes
If (Test-VisioSelectedShapes) { # do something }
Last updated 6 years ago