ext=${CommandLine#*.}
if [ "$ext" = "exe" ]; then
echo "Windows Executable detected. Attempting to use WINE..."
if [ -x "`which wine`" ]; then
WINE=/usr/bin/wine
wine $CommandLine
if [ -x "$WINE" ]; then
$WINE $CommandLine
else
echo "WINE not found in path"
echo "$WINE not found"
fi
$CommandLine