But folder ‘SqlAutomation’ getting created in C:\ drive rather $Profile default folder. I did verify path using Test-Path for all of 4 $profiles and all come with ‘True’.
When you post code or error messages or sample data or console output format it as code, please.
In the “Text” view you can use the code tags “PRE”, in the “Visual” view you can use the format template “Preformatted”. You can go back edit your post and fix the formatting - you don’t have to create a new one.
Thanks in advance.
You have a typo in your mkdir command … $modulesFolder instead of $moduleFolder.