#! /bin/bash

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