removed hardcoded paths, check for .exe error exit code, use get-attr for required param check.
removed hardcoded paths, check for .exe error exit code, use get-attr for required param check.

thaim/ansible,thaim/ansible