November 2018
Intermediate to advanced
566 pages
17h 15m
English
A function, in fact, is made of three blocks, apart from the param() block. These are begin, process, and end.
By default, whatever you specify after the param() block will be treated as belonging to process, unless you specify otherwise.
Create a wrapper function to create three files, test1.txt, test2.txt, and test3.txt. However, before creating the files, output the date. You must be able to call the function like so:
PS> New-File 'test1.txt', 'test2.txt', 'test3.txt'
Read now
Unlock full access