fix for creating new home folder/shares

incorrectly used enter-session in a non interactive environment, instead
switched to invoke-command -session