title: powershell build-in function not recognized as the name of a cmdlet
body: <p><em>The term 'Write-Host' is not recognized as the name of a cmdlet,   function, script file, or operable program. Check the spelling of the name, or   if a path was included, verify that the path is correct and try again.</em></p>
  
  <p><em>The term 'New-Object' is not recognized as the name of a cmdlet,   function, script file, or operable program. Check the spelling of the name, or   if a path was included, verify that the path is correct and try again</em></p>
  
  <p>aka:Write-Host is build-in function in powershell. how to find root cause of that issue?</p>
  
  <p><strong>Update</strong></p>
  
  <p><a href="https://i.stack.imgur.com/OXx3a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OXx3a.png" alt="enter image description here"></a></p>
  
  <p><strong>The same script works while executed in other dev machine.</strong></p>
  
  <p><strong>update</strong></p>
  
  <p>I have tried to set max memory of powershell for single instance to 1GB, and set max memory of powershell for single user to 100M. It still not work.</p>