I have this line of code
"$FTE = Get-DynamicDistributionGroup '" + Input.SelectedItem.Text + "'";
And if my selected item is daddy
then the output would be
Get-DynamicDistributionGroup 'daddy'
However is my item is daddy's
then the string has an extra '
Get-DynamicDistributionGroup 'daddy's'
How should I format this so that the "
or '
contains the apostrophe I tried a few ideas but none seem to work for all occasions.