Is this possible.
I have created a custom function called New-File
Function New-File {
param($Path,$Name)
New-Item -Name $Name -Path $Path -ItemType File
}
If the Parameter Path or Name is type by the user in lower case, it should not work.
This should work
New-File -Path E:\ -Name Testing
This should not work. As the path parameter is type in lower case.
New-File -path E:\ -Name Testing
I tried using $PSBoundParameters but failed. Is there a way to do this.
Reason: My Client want it this way.