Sorry for the late reply. I will try to employ this when I get back in the office. I was trying to write to log per line and it was becomming tedious. Being new to Powershell I wasn't sure if a single function could write to screen and log simultaneously.