Check out the solution in the video Error: A Hash Table Can Only Be Added To Another Hash Table. In the video, we see a syntax similar to using arrays, but also see an error related to this. We then look at how to call a method to add values to an existing hash table (note that this assumes that the hash table exists). Of course, if the hash table does not exist, we can create the values along with the hash table that we want.
Check out the highest-rated Automating ETL course on Udemy, if you're interested in data.
In the above course, we use PowerShell (like we do in the above video) to solve business problems. The course features tools that we build with PowerShell to solve these problems and it's helpful to see some syntax errors that we may experience sometimes when development and their solutions.