You are mixing parameters from different parametersets for the New-Harddisk cmdlet.
In your case CapacityGB and DiskPath can't be used together.
You are mixing parameters from different parametersets for the New-Harddisk cmdlet.
In your case CapacityGB and DiskPath can't be used together.