You posted the wrong keyword again in your updated code

Function CheckDotNet(options $strComputer)


ERROR : undefined variable [intI]!