While PowerShell is a very robust language with multiple different integrations and custom modules, there are still some situations in which you need to work with something outside of PowerShell. This can range from calling separate executables to remote API calls and interacting directly with Component Object Module (COM) objects and Dynamic Link Library (DLL) files. As you will see, PowerShell has specially built cmdlets to deal with each one of these situations.
In this chapter, you will learn how to interact with different resources to solve one of the biggest problems in IT: system documentation (or the lack thereof). You will create a script that will populate a Word document using the Word COM object. You will then use PowerShell to gather information about your local computer and enter that data in the Word document.