I am trying to rename Windows (10) PC using a PowerShell command in a generic script. Here is what I have so far, but it doesn\'t work:
Rename-Computer -NewName &