Open windows using NavigateTo client API in Dynamics 365 Power apps

If you want to use scripts to open windows from command buttons or events in Dynamics 365 and Power Apps model driven apps use following scripts appropriately. Hope this helps.