Please use the below syntax for encrypting the physical file.
aspnet_regiis -pef "connectionStrings" "C:/FirstName-Projects/ProjName-TEST/SolutionName"
Ensure you run the command editor as administrator
Note: The app means the IIS virtual path in command you mentioned