Yeah this feels similar to PowerShell on Linux.
Is it possible? Sure.
Does it make sense? Not really.