#! /bin/bash

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