Changed PublishMode from string to enum.
Added PassThru switch for Write-Log.
Revert "Added PassThru switch for Write-Log."

This reverts commit d2847c202b44ec0cd52669682a7369c4b3c24b72.
Merge branch 'feature/commandenhancements'