switch will not convert %location% to its location, it passes it as a folder name. We have to give the actual location name (ideally folder name) while executing the command.
You can create a whitelist (CSV file) in airwave to keep switches in specific folders as well. This way you can acheive this requirement.