November 2018
Intermediate to advanced
566 pages
17h 15m
English
We are probably tired of reading that PowerShell works on objects. We also know that text is a form of object. Now, it is important to know how to return objects from functions and scripts.
In most programming languages, we use the return keyword to return content from functions. PowerShell has no such requirements; there is no need to use the return keyword to return objects from within functions or scripts. In PowerShell, we simply call the variable or use a statement that outputs content, and this is the return statement in itself. The convention is that as well: no return statements in functions and scripts. If you would like to use it anyway because you are used to it because of languages such as C++, ...
Read now
Unlock full access