Extracting pButtons data to a CSV file on Windows