To better optimize this provider and minimize creation/destruction of powershell processes, this should use the pwshlib module.