Have you checked the %ProgramFiles% is expanded correctly? To try this you could copy notepad.exe to the programfiles directory then launch "%ProgramFiles%\notepad.exe".