In the context of optimizing a multi-class image classification model using PyTorch within Azure Machine Learning, you are configuring Hyperdrive to enhance the model's hyperparameters. Your goal is to identify the hyperparameters leading to the highest accuracy score. Determine the three critical steps in defining the primary metric to achieve this objective.