Get-ADcomputer | Search by OU & OS

Step 1: Query Active Directory by OU and apply results to variable

Step 2: A "Foreach" looping through the variable and the query retuns based on the computer OS Name -Like Windows Server 2012*