Data science is all the rage these days, but data science requires data. PowerShell may usually be thought of as a Sysadmin utility, but it can be used for an absolutely amazing number of process automation and business automation tasks, including gathering raw data for use by other applications.
In this example we will gather the population data for each state in the USA, using Census data. Here is some metadata on our source:

Now, let’s get to work, first by creating our function declaration, which we will call “statepop”, in this case.
