CScript Error: Initialization of the Windows Script Host failed. (Not enough storage is available to process this command. )

CScript Error: Initialization of the Windows Script Host failed. (Not enough storage is available to process this command. )

Issue: While executing a vb script file, we are getting the below error:
Microsoft (R) Windows Script Host Version 5.8 
Copyright (C) Microsoft Corporation. All rights reserved. 
CScript Error: Initialization of the Windows Script Host failed. (Not enough storage is available to process this command. )
Solution: Please increase your IRPStackSize registry entry further in Applications Manager machine.

Reference links: http://support.microsoft.com/kb/106167


Please make sure you have the required RAM space available for APM to execute the script.