Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
The logical next step thereafter is to enable remote access to all these services even when you're disconnected from the home ...