In PowerShell, git checkout runs without any error message. In the ISE, while git checkout stills works, the ISE gives an error message.
git checkout
As specified here, adding -q after the command for quietness won't show these kind of errors.
-q