Changed single quoted command strings to double quoted since they need string interpolation.