_:n5ed8a3b10ffa4378a15c778667e0a3b3xb1
<http://schema.org/text>
"I have been working on this file and don't  get the Code right, I am converting to PowerShell one of my Python scripts but it does not seem to be working as I expected, I am running out of time specially because of the cuarentene with my family  If anyone can help me will be greatly appreciated .Please see and evaluate the Code; #!/usr/bin/powershell\r\n# POWERSHELL To Find in the File only the Lastnames with a \r\n# Vowel as 3rd character and a consonant at the end\r\n\r\nClear-Host\r\n                                                          \r\n# get content of file located in the parent directory       \r\n$content = Get-Content .\\students.txt -Raw     \r\n                                                            \r\n# Browse the file line by line                                \r\nforeach ($line in $content){                                                                                            \r\n                                                            \r\n# I choose 1st lastname                                     \r\n$surname = ($line.strip().split(\" \")[1].split(\":\")[0])      \r\n                                                            \r\n } # match the Lastnames with a Vowel as 3rd character and a consonant at the end                                                        \r\n   match ('[A-Z][aeiouy][^aeiouy].+[aeiouy]$', $surname) \r\n   $count  &gt;&gt; \".\\output.txt\""
<https://community.spiceworks.com/topic/2270565-i-am-stuck-with-a-homework-assignment>