Changed all write-host to 'echo' which is aliased to write-output