#! /bin/bash

COMMAND="$1"
DIR="$2"
if [ "$DIR" == "" ]
then
	DIR=Programs
fi
for file in "$DIR"/*
do
	echo ${file}
	"$COMMAND" ${file}
done
