1. adding the script to load SqlPS Module 2. fixing few bugs in Tony's script. 3. integrated the call to restore-tran log file on target.