This seems like a very likely frequent objective:
Run a PowerShell script that will do the following:
Find the name (or .... ?) of the currently connected NIC.
Local Computer Policy / Computer Configuration / Windows Settings / Security Settings / Network List Manager Policies / Network / Network Location / Location Type
Everything that I've found requires a manual step to find the connected interface name first.
Then, gives a command that can be used, using the name.
I should think that this would be more useful as a script:
[get the name of the connected interface] THEN [change the interface Location type of the named interface]