Changed the loop to check for the job status Implemented status check
Changed the loop to check for the job status
Implemented status check

kozloski/dbatools,wsmelton/dbatools,dsolodow/dbatools,Splaxi/dbatools