Use gear.group_instance.platform to only do this for the Windows platform.
Write a case statement.