I have created a taskpad that executes multiple powershell scripts. Each script uses the selected ActiveDirectory group name attribute as a parameter in the command line options. I can account for groups with spaces in the name by surrounding the $COL<0> parameter with single quotes '$COL<0>', but when I do this the task pad action title will include xml code properties like this:
"title=" tabindex="0">List Members of a group
I can surround the selection in double quotes which fixes the title but then it will treat each word in a group name as a separate parameter which will not work. I have tried multiple ways to escape the quotes but nothing seems to work. The only way I can use this taskpad action properly is with the screwed up title. I have pasted the working command with the messed up title below.
-noexit C:\MCCcode\GroupMembershipList.ps1 '$COL<0>'