Need Help Troubleshooting a Powershell Script

Job ID: 33471888

Budget: $10 – $30 USD

I need help troubleshooting a Powershell Script

This is the extract in the script where it is failing:

New-Item : The network path was not found
At C:\Program Files\WindowsPowerShell\Modules\Questionmark.Legacy\Questionmark.Legacy.psm1:1985
char:23
+ $newDir = New-Item $Path -ItemType Directory

I use to have these environment variables but for some reason now I don't ...

I was hoping making sure I have all the PowerShell AD Modules loaded would clear this , but nope . I have attached one screenshot but I have Zoom on this server so am all set to allow someone to remote in. I have the script that is failing also.
Related categories: Powershell