SharePoint Foundation 2013 Pre-requisite Tool Failure

If you are trying to install SharePoint Foundation 2013, you will need to run the pre-requisite installation process. However, you may come across an error stating that the tool cannot configure the Application Server Role and Web Server (IIS) Role.