Fixed command execution in scaling.template