Check exit status of function wrapped command
Check exit status of function wrapped command

Powershell will not automatically exit if a subcommand fails, so
we need to check it and exit manually if a failure happens

polysquare/polysquare-ci-scripts,polysquare/polysquare-ci-scripts