Used the -As parameter with Read-Host to ensure the correct data type is obtained. Simplified the gender check using the -eq operator. Adjusted the formula by separating terms with multiplication in the BMR calculation. Consolidated the nutrient intake calculation for both genders. Removed unnecessary Exit-PSSession at the end.