14.5. Using the database functions
Let’s put the MOLDatabase module to use. Here’s what we’re going to do:
- Modify the MOLTools module from the previous chapter so that it internally loads the MOLDatabase module.
- Create a function, in MOLTools, that reads computer names from the database and delivers them to Get-MOLSystemInfo. This will be an example of an input function, which we discussed at the outset of the book.
- Create a function, in MOLTools, that takes the output from Get-MOLSystemInfo and saves that information back to the database. This will be an example of an output function, which we also discussed at the outset of the book, although in this case the output will be to a database rather than to the screen or some other visible ...