Writes observable collection to a file with WriteHistoryToFileClickCommand