Index: Application/Shell/Shell.c
===================================================================
--- Application/Shell/Shell.c	(revision 16114)
+++ Application/Shell/Shell.c	(working copy)
@@ -2392,6 +2392,7 @@
   // Now run the command, script, or application
   //
   if (!EFI_ERROR(Status)) {
+	TrimSpaces(&CmdLine);
     Status = RunCommandOrFile(
               Type,
               CmdLine,
