Updating Error Logging on creation of mof

Updating powershell.exe to Invoke-expression as this will trigger the try catch block to show error in creation of mof. It will describe what part of the client config is incorrect for easier diagnosis.