Installed inside WSL (Ubuntu 18.04). Powershell version 6.2.3 . Let me know if you need more info.
/mnt/c/Users/nabin.thapa> z group
Test-Path : Value cannot be null.
Parameter name: The provided Path argument was null or an empty collection.
At /home/nabin/.local/share/powershell/Modules/z/1.1.10/z.psm1:98 char:10
+ if ((Test-Path $cdHistory)) {
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Test-Path], ArgumentNullException
+ FullyQualifiedErrorId : NullPathNotPermitted,Microsoft.PowerShell.Commands.TestPathCommand
System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'FilePath' because it is null.
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Installed inside WSL (Ubuntu 18.04). Powershell version 6.2.3 . Let me know if you need more info.