Issue running a post powershell script

Here is my script:

Any help is appreciated, thanks!