As a quick answer: Yes, most airport scanners will detect pills inside your bag and it doesn't matter if they are in a plastic or a metal container, and it is really helpful to travel with your pills in their original prescription bottles even though it is not obligatory or recommended by the TSA.