Most probably, the vbscript can be converted.
Quick try (I did not test it).
 Code:
$strComputer = "."

$objWMIService = GetObject("winmgmts:\\" + $strComputer + "\root\cimv2")
$colFolders = $objWMIService.ExecQuery("Select * From Win32_Directory Where Name = 'C:\\Scripts'")

For Each $objFolder In $colFolders
	$objFolder.TakeOwnershipEx
Next

But maybe SubInAcl can also help?
I read in an other forum that it is much faster than a script
SubInACL (SubInACL.exe)
ScriptingAnswers.com Forums Archive - take ownership