• After fixing a few typos, I was able to get the expected result.Thanks.

    One think I noticed is that, in the profile script, $Host.Name is appended twice. I guess it was an oversight.

    Thanks again.