Please show me where that is said? When using a variable you don't want quotes around it.

i.e.
$TestGroup="Administrators"
If InGroup($TestGroup) ; requires no quotes
Otherwise it would be

If InGroup("Administrators")
or
If InGroup('Administrators')

Also, prefacing the Domain makes it faster easier for KiX to locate
If InGroup("SomeDomain\Administrators")