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.
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
aka:Write-Host is build-in function in powershell. how to find root cause of that issue?
Update
The same script works while executed in other dev machine.
update
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.
> Write-Host hello world
it's working fine here. check your spelling and are you in powershell cmd – Nikson Kanti Paulgcm *host*
? – Lieven Keersmaekers