Assume I have have a powershell script myscript.ps1 (on Windows 10).
Now I want to call this script (from command line) and pass two parameters (separated by blanks) e.g.
myscript.ps1 “D:\tools\input data.txt” 65656
The parameters may or may not enclosed in double quotes (as above).
How can I access these passed parameters from inside the script?
Say I want to echo/output them (=the values) simply on command line.
It would be nice to get a sample script.
Thank you
Peter